bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: Receive confetti displays for old transaction when Electrum reconnects

Open catch-21 opened this issue 10 months ago • 2 comments

Describe the bug

When the connection to Electrum drops and reconnects, I quite often see the confetti screen for a transaction that I received a while ago, possibly even days ago. This issue is fully reproducible. It will celebrate for a transaction I've already seen the confetti for, although, I cannot find the pattern for what transaction is decides to celebrate for.

Reproduce

This has occurred quite a few times for me recently under normal usage so I am confident it would occur in the wild, which could be confusing for users. These steps recreate it for me reliably (same as attached screengrab vid):

  1. Open Bitkit with a wallet that has some received on-chain transactions
  2. Go to Electrum Server settings
  3. Cease all internet connection (airplane mode)
  4. Wait for "Electrum Connection Failed" message
  5. Allow internet connection again
  6. Wait for "Internet Connection Restored"
  7. Tap "Connect To Host" button (may need to leave Electrum Server settings screen and come back for it to be enabled)
  8. Observe "Received Bitcoin" confetti screen for a transaction that happened some time ago and you have probably already celebrated.

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/74595920/60c2270a-0c23-4887-9ef4-df5385696ba1

Operating system

Android 13 TKQ1.220829.002

Bitkit version

c55c045f58b7e76ee82acdc1419bccf9db8490ae

Log output

No response

catch-21 avatar Apr 25 '24 12:04 catch-21