Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Conversation

@dvush
Copy link
Contributor

@dvush dvush commented Dec 18, 2022

📝 Summary

This change makes working with builder on local devnet more pleasant.

  • always recommit blocks when creating them
  • allow using greedy builder for local devnet

@dvush dvush requested a review from Ruteri December 18, 2022 20:13
@Ruteri
Copy link
Collaborator

Ruteri commented Dec 19, 2022

Looks good, let's rebase and merge once #20 is merged (has some other necessary fixes)

@dvush dvush force-pushed the work-on-local-devnet branch from 5a15daa to 646d6ba Compare December 20, 2022 17:41
timer.Reset(recommit)
continue
}
//if atomic.LoadInt32(&w.newTxs) == 0 {
Copy link
Collaborator

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

Copy link
Contributor Author

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.

  1. 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.
  2. 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.

@dvush dvush merged commit c990674 into flashbots:main Dec 23, 2022
@dvush dvush deleted the work-on-local-devnet branch December 23, 2022 15:17
avalonche pushed a commit that referenced this pull request Dec 23, 2022
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Feb 7, 2023
avalonche pushed a commit that referenced this pull request Feb 7, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Mar 9, 2023
avalonche pushed a commit that referenced this pull request Mar 9, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Mar 15, 2023
avalonche pushed a commit that referenced this pull request Mar 15, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Mar 17, 2023
avalonche pushed a commit that referenced this pull request Mar 17, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Mar 22, 2023
avalonche pushed a commit that referenced this pull request Mar 22, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
avalonche pushed a commit that referenced this pull request Jul 6, 2023
avalonche pushed a commit that referenced this pull request Jul 6, 2023
* Always recommit when creating blocks

* Allow algo worker for local block creation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants