0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

rpc: Allow gettxoutsetinfo and getblockstats for stale blocks

This commit is contained in:
Fabian Jahr 2021-03-11 00:52:46 +01:00
parent b9362392ae
commit 90c966b0f3
No known key found for this signature in database
GPG key ID: F13D1E9D890798CD

View file

@ -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;
}
}