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

add sync in revert_genesis to show unhandled reorg #28

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

zoedberg
Copy link
Collaborator

@zoedberg zoedberg commented Jan 6, 2025

It seems that bp-wallet doesn't handle bitcoin reorgs. Having a look at the code it seems that transactions and utxos are never removed from the cache, even if they disappear from the blockchain.

Run cargo test --test transfers revert_genesis::case_1 -- --include-ignored to see the issue.

@dr-orlovsky could you please provide a fix for this?

@dr-orlovsky
Copy link
Member

Will check what can be done

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.26%. Comparing base (9e2de76) to head (1163628).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #28   +/-   ##
=======================================
  Coverage   37.26%   37.26%           
=======================================
  Files         279      279           
  Lines       42807    42807           
=======================================
  Hits        15950    15950           
  Misses      26857    26857           
Flag Coverage Δ
rust 37.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zoedberg zoedberg merged commit 1163628 into RGB-WG:master Jan 8, 2025
14 checks passed
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