Skip to content

Commit 90c966b

Browse files
committed
rpc: Allow gettxoutsetinfo and getblockstats for stale blocks
1 parent b936239 commit 90c966b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ CBlockIndex* ParseHashOrHeight(const UniValue& param, ChainstateManager& chainma
162162
if (!pindex) {
163163
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
164164
}
165-
if (!active_chain.Contains(pindex)) {
166-
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Block is not in chain %s", Params().NetworkIDString()));
167-
}
165+
168166
return pindex;
169167
}
170168
}

0 commit comments

Comments
 (0)