Don't create empty transactions when reading corrupted wallet #3426

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2013_12_corrupt_wallet_emptytx changing 1 files +2 −4
  1. laanwj commented at 4:35 PM on December 16, 2013: member

    The current transaction loading code is not exception safe. An exception during deserialization causes an empty transaction to be left behind in the wallet.

    Fix this by building the transaction separately and adding it only to the wallet at the end.

    Fixes #3333. Should also be backported to 0.8.7 if we roll one.

  2. Don't create empty transactions when reading corrupted wallet
    The current transaction loading code is not exception safe.
    An exception during deserialization causes an empty transaction
    to be left behind in the wallet.
    
    Fix this by building the transaction separately and adding
    it only to the wallet at the end.
    
    Fixes #3333.
    16ec9044d1
  3. BitcoinPullTester commented at 5:03 PM on December 16, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/16ec9044d1f2eda7c5c86fcb73c839e17fb35db3 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.

  4. sipa commented at 7:03 PM on December 16, 2013: member

    Untested ACK.

  5. Diapolo commented at 9:17 PM on January 12, 2014: none

    Shouldn't this get some more attention, as it fixes a serious bug.

  6. laanwj commented at 7:22 AM on January 13, 2014: member

    @Diapolo you can help by testing it

  7. laanwj referenced this in commit f8b48ed297 on Jan 14, 2014
  8. laanwj merged this on Jan 14, 2014
  9. laanwj closed this on Jan 14, 2014

  10. laanwj deleted the branch on Apr 9, 2014
  11. 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-13 15:16 UTC

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