do not call BuildMerkleTree() unnecessarily twice #2890

pull cozz wants to merge 1 commits into bitcoin:master from cozz:cozz1 changing 1 files +1 −1
  1. cozz commented at 1:36 PM on August 10, 2013: contributor

    block.BuildMerkleTree(); is called twice for no reason. Just a few lines above its called the first time. We dont need to check for empty container here before the block.vMerkleTree.back() call, because block.vMerkleTree can not be empty at this point, because block.vtx.empty() has been checked before.

  2. do not call BuildMerkleTree() unnecessarily twice c7fa1a3586
  3. cozz closed this on Aug 10, 2013

  4. cozz deleted the branch on Aug 10, 2013
  5. cozz restored the branch on Aug 10, 2013
  6. cozz reopened this on Aug 10, 2013

  7. BitcoinPullTester commented at 2:20 PM on August 10, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/c7fa1a358620a785af50c56cc02284990f63c608 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  8. sipa commented at 8:29 AM on August 11, 2013: member

    ACK

  9. gavinandresen referenced this in commit ac1bd701ba on Aug 12, 2013
  10. gavinandresen merged this on Aug 12, 2013
  11. gavinandresen closed this on Aug 12, 2013

  12. IntegralTeam referenced this in commit 783cb9ca69 on Jun 4, 2019
  13. 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-21 18:16 UTC

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