Can display address on device at confirmation screen

This commit is contained in:
nicolas.dorier
2019-12-10 21:22:46 +09:00
parent 93f490f570
commit 540cb912f3
7 changed files with 132 additions and 27 deletions

View File

@@ -337,8 +337,10 @@ namespace BTCPayServer.Controllers
for (int i = 0; i < 10; i++)
{
var keyPath = deposit.GetKeyPath((uint)i);
var rootedKeyPath = vm.GetAccountKeypath()?.Derive(keyPath);
var address = line.Derive((uint)i);
vm.AddressSamples.Add((deposit.GetKeyPath((uint)i).ToString(), address.ScriptPubKey.GetDestinationAddress(strategy.Network.NBitcoinNetwork).ToString()));
vm.AddressSamples.Add((keyPath.ToString(), address.ScriptPubKey.GetDestinationAddress(strategy.Network.NBitcoinNetwork).ToString(), rootedKeyPath));
}
}
vm.Confirmation = true;