-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(baseapp): select txs correctly with no-op mempool #17769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @alexanderbez, just some review comments but mostly LGTM!
…cosmos-sdk into bez/default-prep-prop-size-check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @alexanderbez, though just one code suggestion wasn't dismissed nor acknowledged.
It was a nitpick -- dismissed 👍 |
…cosmos-sdk into bez/default-prep-prop-size-check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good with leaving the nit
…cosmos-sdk into bez/default-prep-prop-size-check
(cherry picked from commit 63d046d) # Conflicts: # CHANGELOG.md
(cherry picked from commit 63d046d) # Conflicts: # CHANGELOG.md # baseapp/abci_utils.go # baseapp/abci_utils_test.go # baseapp/baseapp.go
… (#17848) Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
…s#17769) (cosmos#17848) Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Description
Currently, when an application uses a no-op mempool or no mempool at all, we simply return the txs provided to the app from CometBFT.
However, simply returning the txs is incorrect per the ABCI CometBFT specification as we need to ensure the returned txs meet block size constraints (size and gas).
I've abstracted away this logic into a
TxSelector
type which should make the code easier to readAlso, there was a comparison bug (
<
vs<=
)Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
make lint
andmake test
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change