Add additional block index consistency checks #5959

pull sdaftuar wants to merge 1 commits into bitcoin:master from sdaftuar:update-block-consistency-checks changing 1 files +8 −0
  1. sdaftuar commented at 7:37 PM on April 1, 2015: member

    This adds more tests to CheckBlockIndex:

    • HAVE_DATA is true iff nTx > 0
    • BLOCK_VALID_TRANSACTIONS is true iff nTx > 0
    • BLOCK_VALID_TRANSACTIONS is true for a block and all parents iff nChainTx > 0
  2. Add additional block index consistency checks
    This adds more tests to CheckBlockIndex:
    - HAVE_DATA is true iff nTx > 0
    - BLOCK_VALID_TRANSACTIONS is true iff nTx > 0
    - BLOCK_VALID_TRANSACTIONS is true for a block and all parents iff
      nChainTx > 0
    ede379f780
  3. sdaftuar cross-referenced this on Apr 1, 2015 from issue Add a consistency check for the block chain data structures by sipa
  4. sipa commented at 7:57 PM on April 1, 2015: member

    utACK

  5. sdaftuar cross-referenced this on Apr 3, 2015 from issue Add autoprune functionality by sdaftuar
  6. laanwj commented at 6:56 AM on April 8, 2015: member

    utACK

  7. laanwj merged this on Apr 8, 2015
  8. laanwj closed this on Apr 8, 2015

  9. laanwj referenced this in commit a0bfc69541 on Apr 8, 2015
  10. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC