[Qt] Tiny balance update bug after importprivkey #11477

issue jonasschnelli openend this issue on October 10, 2017
  1. jonasschnelli commented at 9:11 pm on October 10, 2017: contributor

    If you import a private key of an address you are already watching and without a rescan, the available balance does not upgrade correctly.

    Steps (regtest):

    1. generate 101
    2. getnewaddress, store somewhere
    3. sendtoaddress <addr-from-2> 10
    4. dumpprivkey <addr-from-2>, store somewhere
    5. Stop node
    6. Remove wallet.dat
    7. Start node
    8. importaddress <addr-from-2> (== triggers rescan) watch only balance should list properly
    9. importprivkey "<WIF-key-from-4>" "test" false will lead to available balance of 0 (but should be 10)

    A restart solves the issue.

    Bitcoind (listtransactions, getbalance, etc.) is not affected.

  2. jonasschnelli added the label GUI on Oct 10, 2017
  3. jonasschnelli added the label Priority Low on Oct 10, 2017
  4. jaybny commented at 6:42 pm on October 19, 2017: none
    to start giving back to bitcoin.. i will tackle this issue
  5. laanwj removed the label Priority Low on Dec 6, 2017
  6. MarcoFalke added the label Bug on May 8, 2020
  7. MarcoFalke commented at 11:19 pm on May 11, 2020: member

    Bitcoind (listtransactions, getbalance, etc.) is not affected.

    I think it is. See #18954

  8. hebasto commented at 9:27 am on August 5, 2022: member
    Moved to bitcoin-core/gui#640.
  9. hebasto closed this on Aug 5, 2022

  10. bitcoin locked this on Aug 5, 2023

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-24 21:12 UTC

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