diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-12-24 00:11:40 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2022-10-23 01:33:36 +0200 |
commit | cb94db119f4643f49da63520d64efc99fb0c0795 (patch) | |
tree | 536bf2e7e7be4244947e7f7de553bdc0298ef6d0 /src/validation.h | |
parent | 6d4048468430d9d1fe5e7c5fcda13708879d1083 (diff) | |
download | bitcoin-cb94db119f4643f49da63520d64efc99fb0c0795.tar.xz |
validation, index: Add unspendable coinbase helper functions
Making the checks to identify BIP30 available outside of validation.cpp is needed for reporting and tracking statistics on specific blocks and the UTXO set correctly.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index fb6d59f92e..a8ef7a8b3a 100644 --- a/src/validation.h +++ b/src/validation.h @@ -1082,4 +1082,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 |