Skip to content

Commit

Permalink
simulators/ethereum: Update beacon root address 0x000F..Beac02 (#884)
Browse files Browse the repository at this point in the history
* simulators/ethereum/engine: Update beacon root address 0x000F..Beac02

* simulators/ethereum/pyspec: Download latest fixtures

* simulators/ethereum/engine: Update beacon root contract

* simulators/ethereum/engine: Update History buffer length

Co-authored-by: spencer <[email protected]>

---------

Co-authored-by: Mario Vega <[email protected]>
Co-authored-by: spencer <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2023
1 parent f29a28a commit c1abf56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions simulators/ethereum/engine/config/cancun/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ var (
BLOB_COMMITMENT_VERSION_KZG = byte(0x01)

// EIP 4788
BEACON_ROOTS_ADDRESS = common.HexToAddress("0xbEAC020008aFF7331c0A389CB2AAb67597567d7a")
HISTORY_BUFFER_LENGTH = uint64(98304)
BEACON_ROOTS_ADDRESS = common.HexToAddress("0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02")
HISTORY_BUFFER_LENGTH = uint64(8191)

// Test constants
DATAHASH_START_ADDRESS = big.NewInt(0x20000)
Expand Down
2 changes: 1 addition & 1 deletion simulators/ethereum/engine/config/cancun/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ConfigGenesis(genesis *core.Genesis, forkTimestamp uint64) error {
genesis.Alloc[BEACON_ROOTS_ADDRESS] = core.GenesisAccount{
Balance: common.Big0,
Nonce: 1,
Code: common.Hex2Bytes("3373fffffffffffffffffffffffffffffffffffffffe14604457602036146024575f5ffd5b620180005f350680545f35146037575f5ffd5b6201800001545f5260205ff35b6201800042064281555f359062018000015500"),
Code: common.Hex2Bytes("0x3373fffffffffffffffffffffffffffffffffffffffe14604d57602036146024575f5ffd5b5f35801560495762001fff810690815414603c575f5ffd5b62001fff01545f5260205ff35b5f5ffd5b62001fff42064281555f359062001fff015500"),
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions simulators/ethereum/pyspec/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ COPY --from=builder /source/pyspec/pyspec .
# To run locally generated fixtures, comment the following RUN lines and
# uncomment the ADD line.
# Download the latest fixture release.
RUN wget https://github.com/ethereum/execution-spec-tests/releases/download/v1.0.4/fixtures_hive.tar.gz
RUN tar -xzvf fixtures_hive.tar.gz
RUN wget https://github.com/ethereum/execution-spec-tests/releases/latest/download/fixtures_develop_hive.tar.gz
RUN tar -xzvf fixtures_develop_hive.tar.gz
RUN mv fixtures /fixtures

# ADD ./pyspec/fixtures /fixtures
Expand Down

0 comments on commit c1abf56

Please sign in to comment.