Fix Taproot checks after code removal

Necessary additions to 8d6c5dcd65
This commit is contained in:
Dennis Reimann 2021-11-17 13:15:03 +01:00 committed by Andrew Camilleri
parent 8d6c5dcd65
commit c67b2be9d2
3 changed files with 1 additions and 3 deletions

View File

@ -21,7 +21,6 @@
{
ViewData.Add(nameof(Model.CanUseHotWallet), Model.CanUseHotWallet);
ViewData.Add(nameof(Model.CanUseRPCImport), Model.CanUseRPCImport);
ViewData.Add(nameof(Model.IsTaprootActivated), Model.IsTaprootActivated);
ViewData.Add(nameof(Model.SupportSegwit), Model.SupportSegwit);
ViewData.Add(nameof(Model.SupportTaproot), Model.SupportTaproot);
ViewData.Add(nameof(Model.Method), Model.Method);

View File

@ -86,7 +86,7 @@
<tr>
<td class="font-monospace">pkh(xpub…/0/*)</td>
</tr>
@if (Model.SupportTaproot && Model.IsTaprootActivated)
@if (Model.SupportTaproot)
{
<tr>
<td rowspan="1">P2TR</td>

View File

@ -7,7 +7,6 @@
var isHotWallet = method is WalletSetupMethod.HotWallet;
var canUseHotWallet = ViewData["CanUseHotWallet"] is true;
var canUseRpcImport = ViewData["CanUseRPCImport"] is true;
var isTaprootActivated = ViewData["IsTaprootActivated"] is true;
}
@if (!User.IsInRole(Roles.ServerAdmin))