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

Limit scan depth for unconfirmed checkpoints #218

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mappum
Copy link
Contributor

@mappum mappum commented Oct 11, 2023

The relayer was not submitting proofs of checkpoint confirmation since it was searching from the oldest unconfirmed, but only looking back 100 blocks. We don't want to always use the newest unconfirmed since it is a moving target and on an active network there is likely always a tip which is unconfirmed - as a middle ground we use the oldest unconfirmed at a maximum of 5 checkpoints behind the tip (this will need parameterizing in the future).

@mappum mappum force-pushed the relayer-checkpoint-conf-fix branch from ef87add to 958d3d3 Compare October 11, 2023 19:27
@codecov-commenter
Copy link

Codecov Report

Merging #218 (958d3d3) into develop (b20aa22) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop     #218      +/-   ##
===========================================
- Coverage    29.53%   29.51%   -0.02%     
===========================================
  Files           23       23              
  Lines         7394     7399       +5     
===========================================
  Hits          2184     2184              
- Misses        5210     5215       +5     
Files Coverage Δ
src/bitcoin/relayer.rs 11.20% <0.00%> (-0.08%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mappum mappum force-pushed the relayer-checkpoint-conf-fix branch from 958d3d3 to 12778e5 Compare October 11, 2023 20:25
@mappum mappum enabled auto-merge October 11, 2023 20:25
@mappum mappum merged commit cba9401 into develop Oct 11, 2023
8 checks passed
@mappum mappum deleted the relayer-checkpoint-conf-fix branch October 11, 2023 20:30
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