Confirmations not appearing for sent coins after recovering wallet from archive #26

issue sgornick openend this issue on January 10, 2011
  1. sgornick commented at 6:08 pm on January 10, 2011: none

    I was able to recreate an issue where after sending bitcoins and then restoring the wallet the transaction never shows any confirmations even though the transaction did make it to the recipient and does appear in BlockExplorer.

    The steps I performed were: 1.) Create a new wallet 2.) Requested a new address 3.) Received some seed bitcoins (two transactions) to that new address. 4.) Made an archive of my wallet. 5.) Sent two test payment transactions. (to 16W7FAZ8tcX1gDLgDupfAKfpGLYd7XcPRe a 0.02 BTC and a 0.03 BTC) 6.) Recover wallet from archive.

    After many blocks passed (more than an hour), the confirmations still shows 0/unconfirmed. To confirm that the payment was sent, I confirmed: http://blockexplorer.com/address/16W7FAZ8tcX1gDLgDupfAKfpGLYd7XcPRe

    To try to get a clean load of blocks, I then purged the blk*.dat, __db*, addr.dat, .log and database/ (i.e., all files except wallet.dat) and started bitcoin again. $ bitcoin -datadir=.

    After letting the client catch up to the most recent block, … and then waiting at least an hour further, my two test transactions still show 0/unconfirmed.

    The test wallet (with 0 BTC balance) that can be used to recreate this issue is at: http://c1958612.cdn.cloudfiles.rackspacecloud.com/wallet.dat

  2. gavinandresen commented at 10:54 pm on January 13, 2011: contributor
    This may be caused by the same bug as the “sum(accounts) != getbalance” bug.
  3. gavinandresen commented at 9:17 pm on January 20, 2011: contributor

    This is related the the other bug. They are both symptoms of having a wallet with private keys in it that the bitcoin client thinks haven’t been used yet, but that actually were used.

    I just committed a new command-line flag: -rescan … that scans all previous transactions, looking for any that match private keys in the wallet. Running the test wallet with -rescan Does the Right Thing:

     0listtransactions '*'
     1[
     2{
     3    "account" : "",
     4    "address" : "1CuUymfzaqgLm3c9YoN9fUK7Uyk6ZiGipG",
     5    "category" : "receive",
     6    "amount" : 0.03000000,
     7    "confirmations" : 1795,
     8    "txid" : "04299797da34d01ea8f000be656535cea16ca0aa1f385f416b1c3f11811d1f6f",
     9    "time" : 1294647952
    10},
    11{
    12    "account" : "",
    13    "address" : "1CuUymfzaqgLm3c9YoN9fUK7Uyk6ZiGipG",
    14    "category" : "receive",
    15    "amount" : 0.02000000,
    16    "confirmations" : 1795,
    17    "txid" : "585cb6493aa6b67364d6816062248d51b33738a28675ac70f4eb2daaad1433d0",
    18    "time" : 1294647952
    19},
    20{
    21    "account" : "",
    22    "address" : "16W7FAZ8tcX1gDLgDupfAKfpGLYd7XcPRe",
    23    "category" : "send",
    24    "amount" : -0.05000000,
    25    "fee" : 0.00000000,
    26    "confirmations" : 1792,
    27    "txid" : "3d1c7534d993629bb43c9676abb9250f01bd006bf272f39337a1cb29b1eb9d37",
    28    "time" : 1294649139
    29}
    30]
    
  4. justmoon referenced this in commit ee25692a91 on Apr 7, 2014
  5. dexX7 referenced this in commit d3b3b4edb7 on Apr 28, 2015
  6. dexX7 referenced this in commit 4c3cf89012 on Apr 28, 2015
  7. jtimon referenced this in commit 329adc19d3 on Jun 23, 2015
  8. ptschip referenced this in commit ab2dee9d82 on Mar 22, 2016
  9. destenson referenced this in commit 2125530190 on Jun 26, 2016
  10. tempgit9 referenced this in commit 7b75310279 on Jan 16, 2017
  11. MarcoFalke referenced this in commit 619bb05037 on Sep 29, 2017
  12. laanwj referenced this in commit 22a6c1fd8f on Nov 30, 2017
  13. laanwj referenced this in commit 9b80fc1498 on Nov 30, 2017
  14. laanwj referenced this in commit dd49862a70 on Nov 30, 2017
  15. HashUnlimited referenced this in commit b84bc05530 on Mar 12, 2018
  16. HashUnlimited referenced this in commit 2340d25dbb on Mar 14, 2018
  17. KrzysiekJ referenced this in commit 71eb1965b9 on Mar 28, 2018
  18. Warchant referenced this in commit 7958da26e8 on Dec 31, 2019
  19. Bushstar referenced this in commit 610b3e1b06 on Apr 8, 2020
  20. rajarshimaitra referenced this in commit b4622ae821 on Mar 23, 2021
  21. rajarshimaitra referenced this in commit ac08c8dec9 on Mar 23, 2021
  22. MarcoFalke referenced this in commit c857148636 on May 15, 2021
  23. satindergrewal referenced this in commit 44b286ab6e on Jun 22, 2021
  24. MarcoFalke locked this on Sep 8, 2021
  25. promag referenced this in commit d67f6f7100 on Sep 28, 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: 2024-11-18 12:12 UTC

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