New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#5138 #4851 #4865] periodic transaction state updates #5221
Conversation
4193c9b
to
2a36fa8
Compare
branch PR-5221: |
82% of end-end tests have passed
Failed tests (9)Click to expand
Passed tests (42)Click to expand
|
2a36fa8
to
7c5ec4d
Compare
@dmitryn overall looks good. At least for a device that sends transactions (sender). But, there was a case when I think we stopped updating the transaction state for receiver. I send ETH from chat, waited for 15 min, then took 2nd the device (receiver) and clicked on the incoming transaction message (it was pending) and saw 8 confirmations. I went to transaction history, refreshed the screen couple of times and but there was still only 8 confirmations. When I opened Etherscan and there were already 30 confirmations. When I go back to the 1st device (the one that sent the transaction) the number of confirmations was also correct. Is there a timeout after which the app stops the polling? Is it the same for both sender and receiver? |
@lukaszfryc it should poll the same way for both sender and receiver every 15 seconds, no matter what screen you're on and no matter of doing manual refresh or not. |
branch PR-5221: |
@dmitryn I could not found that session and I tested it once again. This time, I didn't have a situation when updating transaction stopped at 8 confirmations. Instead, all transactions went from pending -> confirmed and all confirmed transactions have no more than 12 confirmations. When I went to transaction history in wallet, they were updated to the last confirmation number like 38 and matched what's in Etherscan. Is it expected that the app stops fetching after 12 confirmations and if you really want to see all confirmations you need to go to transaction history? If it's useful, here is TF session with part of the testing. |
@lukaszfryc yes, it's expected. We stop automatic fetching once we don't have any unconfirmed transactions (we consider minimum 12 confirmations as the safe threshold). |
@dmitryn I totally agree with you. OK, let me test it a bit more and maybe compare network consumption between this PR and develop. |
@dmitryn I did 6 min tests where I waited for 12 confirmations. On this PR, the battery decreased by 0.11% (TF session), on nightly ( |
@lukaszfryc thanks for testing, going to merge it now |
7c5ec4d
to
2d6fdc0
Compare
Fixes #5138
Fixes #4851
Fixes #4865
Summary:
Fetch transactions state from etherscan every 15 seconds if there are any unconfirmed transactions or incoming chat transactions which are not synced to wallet.
status: ready