-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support for syncing on mergemock #3174
Merged
Merged
Changes from 31 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
28287c7
block proposing
Giulio2002 40d61ea
standard finalized
Giulio2002 2a33c4c
mergemock execution
Giulio2002 f31df32
private chain can now be ran yay
Giulio2002 bdb44eb
perfectioned
Giulio2002 2a0020c
polished
Giulio2002 d4eab6f
more polishing
Giulio2002 5900107
resize PR
Giulio2002 230efd8
resize PR
Giulio2002 718e856
resize PR
Giulio2002 3ad01be
simplifications
Giulio2002 45cfc7e
fixed tests
Giulio2002 71e47db
better syncronous communication
Giulio2002 15b297d
better syncronous once again
Giulio2002 1c76d35
clean
Giulio2002 67e7140
Re-enabled headers verification
Giulio2002 c5ab49f
mining finish
Giulio2002 499ab83
Merge branch 'mining-pos' of https://www.github.com/ledgerwatch/erigo…
Giulio2002 edd24ea
mining finish
Giulio2002 fbe8137
cleaned hash computation
Giulio2002 20953f6
fixed evm bug
Giulio2002 b04c820
go.mod
Giulio2002 2bd9573
Merge branch 'devel' into mining-pos
Giulio2002 739a5ea
Update .gitignore
Giulio2002 bc36009
Update .gitignore
Giulio2002 66b13f2
Update .gitignore
Giulio2002 88824f2
removed new line from .gitignore
Giulio2002 b5cc6e7
added go.mod and go.sum
Giulio2002 107c967
feeRecipient into preset
Giulio2002 7df70ab
useExternal
Giulio2002 964cfdc
todo
Giulio2002 873910a
fixed comment for forkchoiceUpdateV1
Giulio2002 eb6671d
smaller
Giulio2002 3ae5c95
Merge branch 'mining-pos' of https://www.github.com/ledgerwatch/erigo…
Giulio2002 8a55a2d
smaller
Giulio2002 506736d
Revert changes to miner frequency
yperbasis e24b375
Restore useExternalTx
yperbasis 0a89c98
Fix headerLoadFunc
yperbasis f4526f6
do not reset payloadId
Giulio2002 a7e2c3a
rename
Giulio2002 08617ba
extra is empty
Giulio2002 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ docker-compose.dev.yml | |
libmdbx/build/* | ||
tests/testdata/* | ||
|
||
go.work | ||
go.work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We should not perform complete mining here, only to initiate it. Per the spec: "if payloadAttributes is not null and the client is not SYNCING, and MUST begin a payload build process building on top of forkchoiceState.headBlockHash". And the build process should start concurrently and last for up to 12 seconds. See https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#payload-build-process
Currently
startAssembleFunc
confusingly not only starts the build process, but waits for it to finish.