From f19cd4870062fa9f5ed54e917edb667eead5dd89 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Mon, 9 Dec 2024 13:58:22 +0700 Subject: [PATCH] feat: let RPC mnauth to generate only BASIC bls messages --- src/rpc/misc.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 40ed64f8219447..0b8acb5d5cb99c 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -633,11 +632,8 @@ static RPCHelpMan mnauth() throw JSONRPCError(RPC_INVALID_PARAMETER, "proTxHash invalid"); } - ChainstateManager& chainman = EnsureAnyChainman(request.context); - CBLSPublicKey publicKey; - const bool bls_legacy_scheme{!DeploymentActiveAfter(chainman.ActiveChain().Tip(), Params().GetConsensus(), Consensus::DEPLOYMENT_V19)}; - publicKey.SetHexStr(request.params[2].get_str(), bls_legacy_scheme); + publicKey.SetHexStr(request.params[2].get_str(), /*bls_legacy_scheme=*/false); if (!publicKey.IsValid()) { throw JSONRPCError(RPC_INVALID_PARAMETER, "publicKey invalid"); }