Skip to content
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

rusk-wallet: Add method to store last block height in cache #2623

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Daksh14
Copy link
Contributor

@Daksh14 Daksh14 commented Oct 8, 2024

Add sync status enum to display correct sync status to user and current synced block height from the cache

Closes #2501

Screenshots:

Screenshot 2024-10-08 at 2 41 47 AM

Screenshot 2024-10-08 at 2 41 36 AM

Also closes #2567

@Daksh14 Daksh14 requested review from moCello and HDauven October 8, 2024 06:43
@Daksh14 Daksh14 force-pushed the rusk-wallet-block-height-show branch from 3ed82f6 to 5ad4485 Compare October 9, 2024 11:36
@HDauven
Copy link
Member

HDauven commented Oct 10, 2024

When syncing I seem to be getting this error:
image

The sync seems to work fine, and it finishes. Afterwards, I can make transactions with no problem. Not sure if it is a false-positive or something else

@Daksh14 Daksh14 force-pushed the rusk-wallet-block-height-show branch from d9e2dd7 to f719d96 Compare October 10, 2024 15:36
rusk-wallet/src/cache.rs Outdated Show resolved Hide resolved
@Daksh14 Daksh14 force-pushed the rusk-wallet-block-height-show branch from 7b76a30 to e0e979f Compare October 11, 2024 17:44
@Daksh14 Daksh14 requested a review from moCello October 11, 2024 17:44
Add sync status enum to display correct sync status to user and current synced block height from the cache
Handle channel TryRecv Error
@Daksh14 Daksh14 force-pushed the rusk-wallet-block-height-show branch from 1d26d36 to b03f31b Compare October 11, 2024 18:04
@HDauven
Copy link
Member

HDauven commented Oct 15, 2024

@Daksh14 the current behavior I see is that the block height is only increased when a note is inserted. I think this will be extremely misleading for users when they compare the block height in the wallet with the block height on the explorer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants