Skip to content

addr_sync: update "stored_height" db field immediately on wallet-open#10414

Merged
ecdsa merged 1 commit into
spesmilo:masterfrom
SomberNight:202601_wallet_stored_height_fix
Jan 16, 2026
Merged

addr_sync: update "stored_height" db field immediately on wallet-open#10414
ecdsa merged 1 commit into
spesmilo:masterfrom
SomberNight:202601_wallet_stored_height_fix

Conversation

@SomberNight
Copy link
Copy Markdown
Member

Repro steps:

  • in qt gui, with network enabled, open wallet1
  • open wizard, create wallet2 (restore from seed something that has mined history)
  • close both wallets, stop electrum
  • start electrum with "-o" offline flag, open wallet2
  • observe all txs in history tab show up as "unconfirmed"

The cause is that "stored_height" only gets updated ~on new blocks. So if you created a wallet and closed it soon, its db would not contain "stored_height".

Repro steps:
- in qt gui, with network enabled, open wallet1
- open wizard, create wallet2 (restore from seed something that has mined history)
- close both wallets, stop electrum
- start electrum with "-o" offline flag, open wallet2
- observe all txs in history tab show up as "unconfirmed"

The cause is that "stored_height" only gets updated ~on new blocks.
So if you created a wallet and closed it soon, its db would not contain "stored_height."
@SomberNight SomberNight added the topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py label Jan 15, 2026
@ecdsa ecdsa merged commit 43b0098 into spesmilo:master Jan 16, 2026
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-wallet 👛 related to wallet.py, or maybe address_synchronizer.py/coinchooser.py

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants