Bitcoin-Qt: imported keys not shown until restart #835

issue luke-jr opened this issue on February 14, 2012
  1. luke-jr commented at 5:44 PM on February 14, 2012: member
    1. Start Bitcoin-Qt with -server enabled
    2. bitcoind importprivkey 5KKpXi2Jzq5Uhc2hewc9eXQZrUJyFx7wxbm1JL2PrKEmvJmJRi7
    3. Check "Receive coins" tab
    4. Observe new address (1MaRTyRCFm2tn1JYq6oDoAy6uati7eXJWj) is not listed
    5. Exit Bitcoin-Qt completely
    6. Start Bitcoin-Qt again after it finishes exiting
    7. Observe new address is now in the "Receive coins" tab
  2. ghost assigned laanwj on Feb 14, 2012
  3. laanwj commented at 8:20 AM on April 14, 2012: member

    I expect this to be fixed with commit 98e61758744ed34e8b7f59b37edb6d09b33d5517.

  4. laanwj commented at 4:28 PM on April 22, 2012: member

    verified, this is fixed

  5. laanwj closed this on Apr 22, 2012

  6. sipa commented at 3:21 PM on December 2, 2012: member

    Someone just reported this again on 0.7.1 on IRC. Reopen?

  7. mckaydavis commented at 4:28 AM on June 2, 2013: none

    I'm seeing this issue on 0.8.1 and 0.8.2 on the linux-64 client. Please reopen.

  8. sipa commented at 9:50 AM on June 2, 2013: member

    @BoltBlit You did not set rescan=false when importing?

  9. mckaydavis commented at 10:05 AM on June 2, 2013: none

    @sipa To clarify: I tried again w/ another key and rescan=true. After import, the address shows up in the 'Addresses' pane, but not the 'Receive' pane. After a restart, the address is no longer in the the 'Addresses' pane, but then does show up in the 'Receive' pane. The behavior is kind of confusing.

  10. sipa reopened this on Jun 2, 2013

  11. r000n commented at 9:31 AM on August 13, 2013: contributor

    If make import from debug console, then it moving from 'Addresses' to 'Receive' after repeating this action. In debug log it presents as NotifyAddressBookChanged with isMine=0 at first time, and as isMine=1 at second.

  12. cozz commented at 12:11 AM on April 4, 2014: contributor

    This issue can be closed. It is fixed with 0.9 because we assign address purposes now.

    The problem was we relied on isMine to determine whether to show as "sending" or "receiving". And when importing, it was not mine (yet). But after the next refresh of addresstablemodel is was mine. (See comment above by r000n)

    Also see #3831.

  13. laanwj closed this on Apr 4, 2014

  14. ptschip referenced this in commit 49fe7003de on Jan 9, 2018
  15. dexX7 referenced this in commit ed6218495d on Dec 11, 2018
  16. sipa referenced this in commit 77ccaf5cb9 on Apr 2, 2021
  17. sipa referenced this in commit cb8f70f488 on Apr 2, 2021
  18. sipa referenced this in commit a110aca93f on Apr 2, 2021
  19. sipa referenced this in commit bdca9bcb6c on Apr 23, 2021
  20. rebroad referenced this in commit 6e13b4e771 on Jun 23, 2021
  21. MarcoFalke 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-14 15:16 UTC

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