-
Notifications
You must be signed in to change notification settings - Fork 5
Set txs to empty list #7
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
24c2e0d
5d09ff3
ca86a7c
112eb6d
70d77b1
40e997e
68212fd
2e6b73a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1525,16 +1525,16 @@ func (w *worker) fillTransactions(interrupt *atomic.Int32, env *environment, con | |
|
|
||
| // Fill the block with all available pending transactions. | ||
| if len(localPlainTxs) > 0 || len(localBlobTxs) > 0 || len(constraints) > 0 { | ||
| plainTxs := newTransactionsByPriceAndNonce(env.signer, localPlainTxs, nil, nil, env.header.BaseFee) | ||
| blobTxs := newTransactionsByPriceAndNonce(env.signer, localBlobTxs, nil, nil, env.header.BaseFee) | ||
| plainTxs := newTransactionsByPriceAndNonce(env.signer, make(map[common.Address][]*txpool.LazyTransaction), nil, nil, env.header.BaseFee) | ||
| blobTxs := newTransactionsByPriceAndNonce(env.signer, make(map[common.Address][]*txpool.LazyTransaction), nil, nil, env.header.BaseFee) | ||
|
|
||
| if err := w.commitTransactions(env, plainTxs, blobTxs, constraints, interrupt); err != nil { | ||
| return nil, nil, nil, err | ||
| } | ||
| } | ||
| if len(remotePlainTxs) > 0 || len(remoteBlobTxs) > 0 || len(constraints) > 0 { | ||
| plainTxs := newTransactionsByPriceAndNonce(env.signer, remotePlainTxs, nil, nil, env.header.BaseFee) | ||
| blobTxs := newTransactionsByPriceAndNonce(env.signer, remoteBlobTxs, nil, nil, env.header.BaseFee) | ||
| plainTxs := newTransactionsByPriceAndNonce(env.signer, make(map[common.Address][]*txpool.LazyTransaction), nil, nil, env.header.BaseFee) | ||
| blobTxs := newTransactionsByPriceAndNonce(env.signer, make(map[common.Address][]*txpool.LazyTransaction), nil, nil, env.header.BaseFee) | ||
|
Comment on lines
+1529
to
+1538
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we gate this to a flag
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I wasn't planning on this PR ever being merged, this was just for current community driven usage
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you wish! For us it's not a problem to add some flags if requested :) |
||
|
|
||
| if err := w.commitTransactions(env, plainTxs, blobTxs, constraints, interrupt); err != nil { | ||
| return nil, nil, nil, err | ||
|
|
||
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.
Thanks for the fix, however I don't think this is enough because the
BuilderVerifyConstraintsflag isn't correctly propagated to where builder service is started because it is not read when creating theBuilderArgsstruct to start the relay:bolt-builder/builder/service.go
Lines 292 to 307 in 45fe6e9
By looking at the diffs this might be an oversight on our side when this has been introduced in 5f66af8. I can fix that.
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.
Haha good catch :) I haven't really looked into it enough yet!