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

fix(swe): wait for stacking tx to be k-deep #106

Merged
merged 5 commits into from
Nov 20, 2024
Merged

Conversation

Lazar955
Copy link
Member

Wait for the stacking transaction to be k-deep before submitting the inclusion proof

Copy link
Collaborator

@KonradStaniec KonradStaniec left a comment

Choose a reason for hiding this comment

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

In general looks good, though some e2e test would be nice for this


// make sure we didn't submit any "invalid" incl proof
require.Eventually(t, func() bool {
return promtestutil.ToFloat64(stakingTrackerMetrics.FailedReportedActivateDelegations) == 0
Copy link
Member Author

Choose a reason for hiding this comment

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

New code is blocking until we are K-deep, we expect no errors here

@Lazar955 Lazar955 merged commit b0b596d into main Nov 20, 2024
12 checks passed
@Lazar955 Lazar955 deleted the lazar/wait-tx-kdeep branch November 20, 2024 07:53
Lazar955 added a commit that referenced this pull request Nov 20, 2024
Wait for the stacking transaction to be k-deep before submitting the
inclusion proof
Lazar955 added a commit that referenced this pull request Nov 20, 2024
Wait for the stacking transaction to be k-deep before submitting the
inclusion proof
@Lazar955 Lazar955 linked an issue Nov 21, 2024 that may be closed by this pull request
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.

bstracker submits the inclusion proof before the k-deep
2 participants