-
Notifications
You must be signed in to change notification settings - Fork 86
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
Mempool Simplification #1080
base: main
Are you sure you want to change the base?
Mempool Simplification #1080
Conversation
Co-authored-by: Mikhail Zabaluev <mikhail.zabaluev@movementlabs.xyz>
Co-authored-by: Andy Golay <andygolay@gmail.com> Co-authored-by: musitdev <philippe.delrieu@free.fr> Co-authored-by: Mikhail Zabaluev <mikhail.zabaluev@movementlabs.xyz> Co-authored-by: Richard Melkonian <35300528+0xmovses@users.noreply.github.com> Co-authored-by: Icarus131 <anirudhprasad131@protonmail.com> Co-authored-by: primata <primata@movementlabs.xyz> Co-authored-by: Icarus131 <anirudhprasad131@gmail.com> Co-authored-by: Richard Melkonian <r.v.melkonian@gmail.com>
Co-authored-by: Andy Golay <andygolay@gmail.com> Co-authored-by: musitdev <philippe.delrieu@free.fr> Co-authored-by: Mikhail Zabaluev <mikhail.zabaluev@movementlabs.xyz> Co-authored-by: Richard Melkonian <35300528+0xmovses@users.noreply.github.com> Co-authored-by: Icarus131 <anirudhprasad131@protonmail.com> Co-authored-by: primata <primata@movementlabs.xyz> Co-authored-by: Icarus131 <anirudhprasad131@gmail.com> Co-authored-by: Richard Melkonian <r.v.melkonian@gmail.com> Co-authored-by: Radu Popa <radupopa21be@gmail.com>
The concern is essentially that, without the tolerance, I think users can submit way out into the future, so far that they might never realize gas fees. This reintroduces the attack the tolerance amended. And, I don't see anything directly in the mempool which actually prevents this. If anything it's a side-effect of something in the VM |
This solves #490 insofar as we it doesn't allow the submission of duplicate transactions by sequence number. But, it's not yet clear to me that a user cannot submit transactions roughly arbitrarily out into the future that would abort on the prologue and not pay gas. |
I haven't had the time to dig into it. I've perused over it a few times but I need to spend more time on it. After burn cap upgrade test for me. |
Immediate question is why we didn't see this in previous testnets or bardock. Or did we? Was it reported? If it wasn't it would suggest some regression entered the system that was not caught. |
Yes I think. I've done some test and reproduce some issues.
|
Summary
protocol-units
Resolves #1058 by using the Aptos Core Mempool to construct batches of transactions.
This may also still resolve #490, however, it is as of yet unclear.
just movement-full-node native build.setup.eth-local.celestia-local.test-sequence-number-ooo --keep-project
Changelog
Testing
Outstanding issues
movement/protocol-units/execution/maptos/opt-executor/src/background/transaction-pipe.md
Line 9 in 63e370d
aptos-core
itself, we would want to move theself.core_mempool.commit_transasction
calls back to occur in the execution loop, i.e., after a block has been executed. This would in turn require reintroducing a synchronization primitive aroundcore_mempool
.try_next
andtokio::select
being buggy. That tick needs to time out, but isn't right now.