[Qt] Tiny balance update bug after importprivkey #11477

issue jonasschnelli opened 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 cross-referenced this on May 11, 2020 from issue import* wallet RPCs don't "rescan" the mempool by MarcoFalke
  8. MarcoFalke commented at 11:19 PM on May 11, 2020: member

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

    I think it is. See #18954

  9. MarcoFalke cross-referenced this on May 11, 2020 from issue Importing an address that you have sent to does not update the corresponding transactions by benthecarman
  10. hebasto cross-referenced this on Aug 5, 2022 from issue Tiny balance update bug after importprivkey by hebasto
  11. hebasto commented at 9:27 AM on August 5, 2022: member

    Moved to bitcoin-core/gui#640.

  12. hebasto closed this on Aug 5, 2022

  13. 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: 2026-05-20 06:55 UTC