-
Notifications
You must be signed in to change notification settings - Fork 141
Work on local devnet #30
Conversation
|
Looks good, let's rebase and merge once #20 is merged (has some other necessary fixes) |
5a15daa to
646d6ba
Compare
| timer.Reset(recommit) | ||
| continue | ||
| } | ||
| //if atomic.LoadInt32(&w.newTxs) == 0 { |
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.
Is this necessary?
I'm not sure if anything depends on this in PoS.
There's been a recent change that allows "no tx" blocks to be built
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 think this is a good thing to have, otherwise to commit bundles you must have txs around and that makes some type of testing more hard. Also its more correct because this code does not know about bundles and assumes that if there are no txs then there is no way to create a non-empty block.
I don't think that this matters in PoS.
- It may matter only if people use our builder as a primary node for CL + EL setup. If we use this node as a builder this code is never called.
- Even then I don't think this matters because this is only short-circuit, meaning that in the absence of bugs in the sealing code the same output should happen but after some steps. E.g. if its prohibited by consensus to a real empty block then it should error in another place.
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
* Always recommit when creating blocks * Allow algo worker for local block creation
📝 Summary
This change makes working with builder on local devnet more pleasant.