mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
doc: validation: add a reference to historical header spam vulnerability
This commit is contained in:
parent
ede388d03d
commit
5e3d9f21df
1 changed files with 4 additions and 0 deletions
|
@ -4202,6 +4202,10 @@ arith_uint256 CalculateClaimedHeadersWork(std::span<const CBlockHeader> headers)
|
|||
* enforced in this function (eg by adding a new consensus rule). See comment
|
||||
* in ConnectBlock().
|
||||
* Note that -reindex-chainstate skips the validation that happens here!
|
||||
*
|
||||
* NOTE: failing to check the header's height against the last checkpoint's opened a DoS vector between
|
||||
* v0.12 and v0.15 (when no additional protection was in place) whereby an attacker could unboundedly
|
||||
* grow our in-memory block index. See https://bitcoincore.org/en/2024/07/03/disclose-header-spam.
|
||||
*/
|
||||
static bool ContextualCheckBlockHeader(const CBlockHeader& block, BlockValidationState& state, BlockManager& blockman, const ChainstateManager& chainman, const CBlockIndex* pindexPrev) EXCLUSIVE_LOCKS_REQUIRED(::cs_main)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue