diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..765b22f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,2 @@ +[*.cs] +indent_style = tab \ No newline at end of file diff --git a/NBXplorer/Repository.cs b/NBXplorer/Repository.cs index 0ead535..40d28d6 100644 --- a/NBXplorer/Repository.cs +++ b/NBXplorer/Repository.cs @@ -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);