Skip to content

Sam/ethereum plugin fixes #957

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

Merged
merged 4 commits into from
Jul 21, 2025
Merged

Sam/ethereum plugin fixes #957

merged 4 commits into from
Jul 21, 2025

Conversation

samholmes
Copy link
Collaborator

@samholmes samholmes commented Jul 9, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

cursor[bot]

This comment was marked as outdated.

@samholmes samholmes force-pushed the sam/ethereum-plugin-fixes branch from a7ba0e2 to b8cfeb1 Compare July 21, 2025 20:57
@samholmes samholmes enabled auto-merge July 21, 2025 21:00
By catching unknown errors in the acquireUpdates function, the caller
doesn't know that the function failed and will retry after snoozing.
The wallet would be stuck in this loop thrashing the network and
degrading device performance while the app is in a buggy state because
of the unknown error.
Instead, we'll break out of the syncNetwork function because the unknown
error is actually thrown. The core should log errors from syncNetwork
to be introspected by a developer when debugging.
The first problem solved with this change is to have a dedicated
`highestTxBlockHeight` state which tracks the blockHeight of the last
transaction received. This would more accurately determine whether a
change is present on the network and eliminate missing transaction bugs.

The second fix is to increase the immediacy of the call to
`onSubscribeAddresses` callback. This gets the subscription request to
the core sooner, minimizing the race for the core to start the
`PeriodicTask` version of `syncNetwork`.
@samholmes samholmes force-pushed the sam/ethereum-plugin-fixes branch from b8cfeb1 to 3271dd7 Compare July 21, 2025 21:26
@samholmes samholmes merged commit 6908117 into master Jul 21, 2025
3 checks passed
@samholmes samholmes deleted the sam/ethereum-plugin-fixes branch July 21, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants