Do not accept orphan blocks in -loadblock mode #1695

pull sipa wants to merge 1 commits into bitcoin:master from sipa:noloadorphan changing 1 files +9 −6
  1. sipa commented at 5:20 PM on August 21, 2012: member

    In -loadblock mode, ProcessBlock() is called without node to retrieve parents from, if needed. In this case, prefer to not store orphans as all, as they would just linger in RAM.

  2. Do not accept orphan blocks in -loadblock mode 5c88e3c108
  3. Diapolo commented at 5:51 PM on August 21, 2012: none

    Does this cleanup orphan blocks stored in our block-files when re-importing them as new block-files?

  4. gavinandresen commented at 5:54 PM on August 21, 2012: contributor

    ACK

  5. sipa commented at 6:09 PM on August 21, 2012: member

    @Diapolo Normally, block files do not contain orphan blocks (by which i mean blocks that have no known parent), they do have chains of stale chains that got reorganised away (which is what I assume you're talking about). This only prevents real orphan blocks from being imported.

  6. jgarzik commented at 8:12 PM on August 21, 2012: contributor

    ACK

  7. BitcoinPullTester commented at 12:11 AM on August 22, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/5c88e3c108f8bbe0edbcd88b3f48e3eaf611cd7c for binaries and test log.

  8. sipa referenced this in commit 1a3dcca8f4 on Aug 22, 2012
  9. sipa merged this on Aug 22, 2012
  10. sipa closed this on Aug 22, 2012

  11. suprnurd referenced this in commit 788ae63ac2 on Dec 5, 2017
  12. suprnurd referenced this in commit 8591448094 on Dec 5, 2017
  13. owlhooter referenced this in commit d6e2aa843c on Oct 10, 2018
  14. DrahtBot 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-04-19 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me