From 407059896b691fcc83d9932f4aae602daaeea773 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 5 Feb 2018 13:38:11 +0900 Subject: [PATCH] Simplify code + editorconfig --- .editorconfig | 2 ++ NBXplorer/Repository.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .editorconfig 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);