forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 0
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
EOF+shandong #5
Draft
meowsbits
wants to merge
71
commits into
eof
Choose a base branch
from
eof-shandong
base: eof
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
EOF+shandong #5
Conversation
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
…figuration parameters Date: 2022-12-01 11:23:57-08:00 Signed-off-by: meows <b5c6@protonmail.com>
…etwork to configuration switches Use: --chain=shandong Date: 2022-12-01 11:50:44-08:00 Signed-off-by: meows <b5c6@protonmail.com>
Date: 2022-12-01 12:12:35-08:00 Signed-off-by: meows <b5c6@protonmail.com>
…nfigs for CL for Shandong Date: 2022-12-01 13:01:30-08:00 Signed-off-by: meows <b5c6@protonmail.com>
Date: 2022-12-01 13:29:51-08:00 Signed-off-by: meows <b5c6@protonmail.com>
Date: 2022-12-01 13:35:08-08:00 Signed-off-by: meows <b5c6@protonmail.com>
Date: 2022-12-01 13:39:54-08:00 Signed-off-by: meows <b5c6@protonmail.com>
… oracle Date: 2022-12-01 13:48:49-08:00 Signed-off-by: meows <b5c6@protonmail.com>
The rand.Int call below for the lookup panics because len(checkpoints) is 0 and it uses an unchecked len(checkpoints) -1. Not allowed. Date: 2022-12-01 13:53:38-08:00 Signed-off-by: meows <b5c6@protonmail.com>
The testnet Shandong does not have beacon state infrastructure, and the code as-is does not handle this omission well. So this patch modifies the logic to not fail hard if the beacon state parameters are not configured (or fail for some other reason). Date: 2022-12-03 09:04:43-08:00 Signed-off-by: meows <b5c6@protonmail.com>
…estnet Configuration types declare this feature as a Shanghai fork feature, but Shandong testnet uses a Shanghai configuration that does not have Withdrawals configured. So we need to hack it out. Date: 2022-12-05 13:16:40-08:00 Signed-off-by: meows <b5c6@protonmail.com>
…h#6214) Potentially helps with: erigontech#6123
For issue erigontech#6163, based on pr erigontech#5359 of Gibbs , Supported BSC mainnet Gibbs hardfork
Co-authored-by: nanevardanyan <nanevardanyants@gmail.com>
…nSync (erigontech#6222) Change from: ``` begin(TxNoSync) exec new block, index nee data do limited pruning commit() send notifications about new data arrival to other apps, they may start reading new data at this time (by new read transactions) ``` Change to: ``` begin(TxNoSync) exec new block, index nee data commit() // no fsync here send notifications about new data arrival to other apps, they may start reading new data at this time (by new read transactions) begin() do pruning commit() // fsync here ``` it allows notify earlier. Fsync (of all changes) on modern drives is fast, but on cloud-drives it’s about 1sec in worst cases.
This ensures that the filter bad transactions can use the same context each time, so increases an account nonce in the first batch of transactions is committed to the simulation just in case the same account appears in the next batch of transactions. Also makes use of the new txpool candidate functionality to ensure we're getting fresh transactions each time.
…#6266) Fixes erigontech#4935 Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local> Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This is described in: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#compute_shuffled_index. I ran the prysm implementation locally to generate the expected outputs: https://github.com/prysmaticlabs/prysm/blob/babfc66c5bc5ca6635fbc7d786e22c8ccdc18c16/beacon-chain/core/helpers/shuffle.go#L73 Part of erigontech#5965
erigontech#6273) … formatting when error Fixes erigontech#5365 Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
) Works around a flaw in the upgrade logic of the system contracts. Since they are updated directly, without first being self-destructed and then re-created, the usual incarnation logic does not get activated, and all historical records of the code of these contracts are retrieved as the most recent version. This problem will not exist in erigon3, but until then, a workaround will be used to access code of such contracts through a special structure, `SystemContractCodeLookup` Fixes erigontech#5865 Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Fixes erigontech#4778 Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This reverts commit 7861796.
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
…uests (erigontech#6281) Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
# Conflicts: # cmd/hack/hack.go # consensus/serenity/serenity.go # core/genesis.go # eth/backend.go # go.mod # params/bootnodes.go # params/config.go # params/networkname/network_name.go # turbo/node/node.go
This PR is stale because it has been open for 40 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR makes the needed changes in order we can sync the Shandong testnet using the ConsenSys Teku Ethereum 2.0 Beacon Chain.
We were able to sync up to the latest block which at the time of editing is
211430
.Setup
Running an Erigon instance on a DO VPS with systemd config:
Also running Teku instance with systemd config:
Code diff at erigon for syncing
For syncing we had to temporary disable the CheckpointSyncEndpoint logic