From 90c966b0f3cfbd6bce5883f46d8527c6853a86a2 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Thu, 11 Mar 2021 00:52:46 +0100 Subject: rpc: Allow gettxoutsetinfo and getblockstats for stale blocks --- src/rpc/blockchain.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/rpc') diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 4a4c432a01..f8d7d94abf 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -162,9 +162,7 @@ CBlockIndex* ParseHashOrHeight(const UniValue& param, ChainstateManager& chainma if (!pindex) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found"); } - if (!active_chain.Contains(pindex)) { - throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Block is not in chain %s", Params().NetworkIDString())); - } + return pindex; } } -- cgit v1.2.3