diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-03-04 01:37:50 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-04-19 21:11:37 +0200 |
commit | 5f96d7d22d8e05876c6fc014e70488699950fe38 (patch) | |
tree | 5fcdaa66b621d076b23c8224c822fad040cc188f /src | |
parent | 23fe50436be641d7417152adc683192649ba206a (diff) | |
download | bitcoin-5f96d7d22d8e05876c6fc014e70488699950fe38.tar.xz |
rpc: gettxoutsetinfo rejects hash_serialized_2 for specific height
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/blockchain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index f8d7d94abf..438b6ce6e6 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1168,6 +1168,10 @@ static RPCHelpMan gettxoutsetinfo() throw JSONRPCError(RPC_INVALID_PARAMETER, "Querying specific block heights requires coinstatsindex"); } + if (stats.m_hash_type == CoinStatsHashType::HASH_SERIALIZED) { + throw JSONRPCError(RPC_INVALID_PARAMETER, "hash_serialized_2 hash type cannot be queried for a specific block"); + } + pindex = ParseHashOrHeight(request.params[1], chainman); } |