Fixed a privkey derive issue (nothing serious)

This commit is contained in:
Rick Falkvinge
2017-11-29 18:47:53 +01:00
parent 1c396f6ae8
commit a03332dc2e
+4 -1
View File
@@ -139,7 +139,10 @@ namespace Swarmops.Logic.Financial
foreach (string derivationString in DerivationPath.Split (' '))
{
secretExtKey = secretExtKey.Derive (UInt32.Parse (derivationString));
if (!String.IsNullOrEmpty(derivationString.Trim()))
{
secretExtKey = secretExtKey.Derive(UInt32.Parse(derivationString.Trim()));
}
}
if (this.UniqueDerive > -1)