Skip to content

fix: --listen finalized wait for finalized xt#425

Merged
niklasad1 merged 1 commit intomainfrom
na-wait-for-finalized-when-listen-to-finalized
Dec 5, 2022
Merged

fix: --listen finalized wait for finalized xt#425
niklasad1 merged 1 commit intomainfrom
na-wait-for-finalized-when-listen-to-finalized

Conversation

@niklasad1
Copy link
Copy Markdown
Contributor

@niklasad1 niklasad1 commented Dec 1, 2022

When one runs --listen finalized it's possible for the block not to be finalized when it's included in block.

Thus, when that task finishes it's possible to that the next task will not see that submission as it is not finalized yet and submit more than one submission in a round.

Should fix the duplicate solutions that I spotted on westend.

@niklasad1 niklasad1 requested a review from kianenigma December 5, 2022 13:10
@@ -448,11 +456,13 @@ async fn submit_and_watch_solution<T: MinerConfig + Send + Sync + 'static>(
.find_first::<runtime::election_provider_multi_phase::events::SolutionStored>(
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

formatting seems broken here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

rustfmt wants it like that 😭

@niklasad1 niklasad1 merged commit 579f480 into main Dec 5, 2022
@niklasad1 niklasad1 deleted the na-wait-for-finalized-when-listen-to-finalized branch December 5, 2022 16:57
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