Simplify code + editorconfig

This commit is contained in:
nicolas.dorier 2018-02-05 13:38:11 +09:00
parent 30fbbad7d6
commit 407059896b
2 changed files with 3 additions and 1 deletions

2
.editorconfig Normal file
View File

@ -0,0 +1,2 @@
[*.cs]
indent_style = tab

View File

@ -588,7 +588,7 @@ namespace NBXplorer
Redeem = derivation.Redeem,
DerivationStrategy = strategy,
Feature = derivationFeature,
KeyPath = DerivationFeature.Direct == derivationFeature ? new KeyPath(index.ToString()) : DerivationStrategyBase.GetKeyPath(derivationFeature).Derive(index, false)
KeyPath = DerivationStrategyBase.GetKeyPath(derivationFeature).Derive(index, false)
};
var bytes = ToBytes(info);
GetScriptsIndex(info.ScriptPubKey).Insert(tx, $"{strategy.GetHash()}-{derivationFeature}", bytes);