Remove useless code

This commit is contained in:
nicolas.dorier
2021-11-16 21:02:03 +09:00
parent e5fa6fa55a
commit 8d6c5dcd65
2 changed files with 0 additions and 15 deletions

View File

@@ -146,19 +146,6 @@ namespace BTCPayServer.Controllers
} }
} }
public bool TaprootActivated(string crytoCode)
{
var network = (BTCPayNetwork)_NetworkProvider.GetNetwork(crytoCode);
#pragma warning disable CS0618
if (!(network.IsBTC && network.NBitcoinNetwork.ChainName == ChainName.Mainnet))
// Consider it activated for everything that is not mainnet bitcoin
return true;
#pragma warning restore CS0618
var status = _Dashboard.Get(crytoCode).Status;
return status.ChainHeight >= 709632;
}
[HttpPost] [HttpPost]
[Route("{storeId}/users")] [Route("{storeId}/users")]
public async Task<IActionResult> StoreUsers(StoreUsersViewModel vm) public async Task<IActionResult> StoreUsers(StoreUsersViewModel vm)

View File

@@ -39,8 +39,6 @@ namespace BTCPayServer.Models.StoreViewModels
public bool CanUseRPCImport { get; set; } public bool CanUseRPCImport { get; set; }
public bool SupportSegwit { get; set; } public bool SupportSegwit { get; set; }
public bool SupportTaproot { get; set; } public bool SupportTaproot { get; set; }
[Display(Name = "Is taproot activated")]
public bool IsTaprootActivated { get; set; }
public RootedKeyPath GetAccountKeypath() public RootedKeyPath GetAccountKeypath()
{ {
if (KeyPath != null && RootFingerprint != null && if (KeyPath != null && RootFingerprint != null &&