diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-03-11 00:52:46 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-04-19 21:11:37 +0200 |
commit | 90c966b0f3cfbd6bce5883f46d8527c6853a86a2 (patch) | |
tree | ec1b381f04268488d020c2980822349ba20a24ed /src/rpc | |
parent | b9362392aef2689bc106c20925859ede555d082b (diff) |
rpc: Allow gettxoutsetinfo and getblockstats for stale blocks
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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; } } |