Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

txpool: TestApi best_block fix #12992

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

michalkucharczyk
Copy link
Contributor

@michalkucharczyk michalkucharczyk commented Dec 21, 2022

This is a minor clean up.

There was a minor bug in TestApi::add_block: the best block flag for given number was not cleared when the new best block with the same number was added.

The usage of is_best_block argument in add_block method in txpool tests were aligned with the NewBestBlock event.

This is a minor clean up.

There was a minor bug in TestApi::add_block: the best block flag for
given number was not cleared when the new best block with the same
number was added.

The usage of is_best_block argument in add_block method in txpool tests
were aligned with the BestBlock event.
@michalkucharczyk michalkucharczyk added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Dec 21, 2022
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Dec 21, 2022
@michalkucharczyk michalkucharczyk requested a review from a team December 21, 2022 12:57
@bkchr bkchr requested a review from a team December 21, 2022 14:56
@michalkucharczyk
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 1bcb3ce into master Dec 21, 2022
@paritytech-processbot paritytech-processbot bot deleted the mku-txpool-testutils-best-block-fix branch December 21, 2022 16:36
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
This is a minor clean up.

There was a minor bug in TestApi::add_block: the best block flag for
given number was not cleared when the new best block with the same
number was added.

The usage of is_best_block argument in add_block method in txpool tests
were aligned with the BestBlock event.
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
This is a minor clean up.

There was a minor bug in TestApi::add_block: the best block flag for
given number was not cleared when the new best block with the same
number was added.

The usage of is_best_block argument in add_block method in txpool tests
were aligned with the BestBlock event.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants