rpc: Allow gettxoutsetinfo and getblockstats for stale blocks

This commit is contained in:
Fabian Jahr committed 2021-04-19 21:11:37 +02:00
1 parent b9362392ae
commit 90c966b0f3
1 file changed
+1 -3
+1 -3
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;
}
}