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

Remove the alphMinConfirmations flag #77

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Conversation

Lbqds
Copy link
Member

@Lbqds Lbqds commented Aug 31, 2023

  1. Address this comment: https://github.com/alephium/bridge-guardian-infra/pull/5/files#r1309815195
  2. Improve the creation of LocalTokenPool on Alephium

I will release 0.1.0 after this PR is merged.

@@ -144,7 +144,7 @@ func (w *Watcher) getGovernanceEventsByTxId(

reobservedEvents = append(reobservedEvents, &reobservedEvent{
&event,
maxUint8(msg.consistencyLevel, w.minConfirmations),
msg.consistencyLevel,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR: how do we enforce the minimum consistencyLevel for new messages from users?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, we enforce the minimum consistency level in both frontend and contract:

  1. The frontend sets the consistencyLevel to 105 when the user sends a transaction
  2. We also check in the contract that the consistencyLevel for the transfer transaction is not less than 105

Copy link
Member

@polarker polarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@h0ngcha0 h0ngcha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Lbqds Lbqds merged commit b08669b into master Aug 31, 2023
10 of 12 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.

3 participants