-
Notifications
You must be signed in to change notification settings - Fork 21
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
linea_sendBundle #135
base: main
Are you sure you want to change the base?
linea_sendBundle #135
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.
Looks very promising, I added a couple of comments and will adjust the API accordingly
private int calculateWeight(TransactionBundle bundle) { | ||
return bundle.pendingTransactions.stream() | ||
.mapToInt(pt -> pt.getTransaction().getPayload().size()) | ||
.sum(); | ||
} |
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.
PendingTransaction
has a better way to compute the estimated memory size
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.
I used Transaction:getSize for now, since the PendingTransaction interface doesn't export memorySize()
.../net/consensys/linea/sequencer/txselection/selectors/LineaSendBundleTransactionSelector.java
Outdated
Show resolved
Hide resolved
6347c4f
to
67bfbe1
Compare
outstanding work on creating a shared singleton bundle pool before we can smoke test the endpoint. Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
b28c5a9
to
3e47c80
Compare
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
…ization issues Signed-off-by: garyschulte <garyschulte@gmail.com>
plugin for linea_sendBundle, endpoints:
linea_sendBundle implements eth_sendBundle interface
linea_cancelBundle implements eth_cancelBundle interface
Notably linea_sendBundle does not implement any behavior for
builders
. Otherwise feature complete, but PR is in draft state awaiting upstream plugin-api changes in linea-besu that support this endpoint.example usages:
linea_sendBundle:
linea_cancelBundle: