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

Don't assume that all transaction reaped from the mempool will be accepted by the application #1007

Open
evan-forbes opened this issue May 12, 2023 · 2 comments
Labels
mempool T:optimization Type: Optimization

Comments

@evan-forbes
Copy link
Member

evan-forbes commented May 12, 2023

Currently, tendermint will reap transactions on the mempool based on the MaxBytes consensus param because it assumes that all the transactions that are reaped will make it in the block. Since this assumption is not true, we should instead reap more than MaxBytes and rely on the application to create proposals that are small enough.

edit: per discussion below this issue is blocked by #1241

@evan-forbes evan-forbes added this to the Mainnet milestone May 12, 2023
@evan-forbes evan-forbes changed the title Reap more txs from the mempool and rely on the app to cap block size Don't assume that all transaction reaped from the mempool will be accepted by the application May 12, 2023
@evan-forbes evan-forbes added T:optimization Type: Optimization mempool labels May 12, 2023
@evan-forbes
Copy link
Member Author

first before we move forward with a solution to this issue we should gather more data on roughly how large of a problem this is. We first need a metric determining how efficient this process is

@cmwaters
Copy link
Contributor

We could track as a metric how many transactions are rejected by the application

cmwaters added a commit that referenced this issue Jul 31, 2024
## Description

Add counter to the block executor metrics :
- RejectedTransactions

Resolves #1241

Unblocks #1007


#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: 0xEclair <[email protected]>
Co-authored-by: Callum Waters <[email protected]>
cmwaters added a commit that referenced this issue Jul 31, 2024
Add counter to the block executor metrics :
- RejectedTransactions

Resolves #1241

Unblocks #1007

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: 0xEclair <[email protected]>
Co-authored-by: Callum Waters <[email protected]>
evan-forbes pushed a commit that referenced this issue Jul 31, 2024
Add counter to the block executor metrics :
- RejectedTransactions

Resolves #1241

Unblocks #1007

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: 0xEclair <[email protected]>
Co-authored-by: Callum Waters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mempool T:optimization Type: Optimization
Projects
None yet
Development

No branches or pull requests

2 participants