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

Never overwrite recent Bridge pool proofs in storage #1893

Merged
merged 9 commits into from
Sep 25, 2023

Conversation

sug0
Copy link
Contributor

@sug0 sug0 commented Sep 14, 2023

Describe your changes

Only write signed Bridge pool proofs to storage if they are more recent than the previously available proof in storage.

Indicate on which release or other PRs this topic is based on

v0.22.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@sug0 sug0 added bug Something isn't working ledger ethereum-bridge labels Sep 14, 2023
sug0 added a commit that referenced this pull request Sep 14, 2023
batconjurer
batconjurer previously approved these changes Sep 15, 2023
@sug0 sug0 mentioned this pull request Sep 15, 2023
tzemanovic
tzemanovic previously approved these changes Sep 18, 2023
@sug0 sug0 dismissed stale reviews from tzemanovic and batconjurer via fd2965d September 19, 2023 07:37
sug0 and others added 2 commits September 19, 2023 08:39
Co-authored-by: Tomas Zemanovic <tomas@heliax.dev>
@sug0 sug0 force-pushed the tiago/bridge-pool-roots-signing branch from fd2965d to d854be0 Compare September 19, 2023 07:39
@sug0 sug0 mentioned this pull request Sep 21, 2023
Fraccaman added a commit that referenced this pull request Sep 25, 2023
* origin/tiago/bridge-pool-roots-signing:
  Changelog for #1893
  Declare returned storage key as must use
  Add debug logs for discarded Bridge pool root proofs
  Return immediately if a BP proof is already available
  Write test_more_recent_signed_root_not_overwritten() unit test
  Add Debug to Bridge pool root tallies
  Only update a signed BP root in storage if it is newer than old root
  Parameterize signed Bridge pool root by its block height
  New method to append segments to a storage key
@brentstone brentstone merged commit 2fe78ab into main Sep 25, 2023
11 of 12 checks passed
@brentstone brentstone deleted the tiago/bridge-pool-roots-signing branch September 25, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants