mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Merge bitcoin/bitcoin#19888: rpc, test: Improve getblockstats for unspendables
d885bb2f6etest: Test exclusion of OP_RETURN from getblockstats (Fabian Jahr)ba9d288b24test: Fix getblockstats test data generator (Fabian Jahr)2ca5a496c2rpc: Improve getblockstats (Fabian Jahr)cb94db119fvalidation, index: Add unspendable coinbase helper functions (Fabian Jahr) Pull request description: Fixes #19885 The genesis block does not have undo data saved to disk so the RPC errored because of that. ACKs for top commit: achow101: ACKd885bb2f6eaureleoules: ACKd885bb2f6estickies-v: ACKd885bb2f6Tree-SHA512: f37bda736ed605b7a41a81eeb4bfbb5d2b8518f847819e5d6a090548a61caf1455623e15165d72589ab3f4478252b00e7b624f9313ad6708cac06dd5edb62e9a
This commit is contained in:
@@ -1066,4 +1066,10 @@ bool DeploymentEnabled(const ChainstateManager& chainman, DEP dep)
|
||||
*/
|
||||
const AssumeutxoData* ExpectedAssumeutxo(const int height, const CChainParams& params);
|
||||
|
||||
/** Identifies blocks that overwrote an existing coinbase output in the UTXO set (see BIP30) */
|
||||
bool IsBIP30Repeat(const CBlockIndex& block_index);
|
||||
|
||||
/** Identifies blocks which coinbase output was subsequently overwritten in the UTXO set (see BIP30) */
|
||||
bool IsBIP30Unspendable(const CBlockIndex& block_index);
|
||||
|
||||
#endif // BITCOIN_VALIDATION_H
|
||||
|
||||
Reference in New Issue
Block a user