Do not check twice for empty set of transactions. #5396

pull paveljanik wants to merge 1 commits into bitcoin:master from paveljanik:doubleemptycheck changing 1 files +1 −1
  1. paveljanik commented at 9:28 PM on November 30, 2014: contributor

    We have the same check a few/five lines above this line, in the section "Size limits" and such block is already bad-blk-length. Looks like bad merge or something.

  2. Do not check twice for empty set of transactions. e9622acba7
  3. sipa commented at 9:32 PM on November 30, 2014: member

    untested ACK

  4. laanwj commented at 9:11 AM on December 1, 2014: member

    I like keeping this check here. This is critical code and there it is better to be explicit, which could save the day in case checks get reordered.

  5. laanwj closed this on Dec 1, 2014

  6. paveljanik commented at 11:13 AM on December 1, 2014: contributor

    OK, np. The code is a bit unreadable this way without comment above this check saying so...

  7. paveljanik deleted the branch on Dec 2, 2014
  8. MarcoFalke 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-28 00:15 UTC

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