mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Remove useless code
This commit is contained in:
@@ -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]
|
||||
[Route("{storeId}/users")]
|
||||
public async Task<IActionResult> StoreUsers(StoreUsersViewModel vm)
|
||||
|
||||
@@ -39,8 +39,6 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
public bool CanUseRPCImport { get; set; }
|
||||
public bool SupportSegwit { get; set; }
|
||||
public bool SupportTaproot { get; set; }
|
||||
[Display(Name = "Is taproot activated")]
|
||||
public bool IsTaprootActivated { get; set; }
|
||||
public RootedKeyPath GetAccountKeypath()
|
||||
{
|
||||
if (KeyPath != null && RootFingerprint != null &&
|
||||
|
||||
Reference in New Issue
Block a user