Skip to content

Commit

Permalink
clients/erigon, simulators/ethereum/rpc: patch RPC tests for erigon (e…
Browse files Browse the repository at this point in the history
…thereum#953)

TTDPassed=true would make Erigon consider it POS chain - not applicable for clique or fakepow-based tests
  • Loading branch information
somnathb1 authored and Eikix committed Mar 1, 2024
1 parent 2cdea39 commit 91d2ae9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/erigon/erigon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fi

# Configure RPC.
FLAGS="$FLAGS --http --http.addr=0.0.0.0 --http.api=admin,debug,eth,net,txpool,web3"
FLAGS="$FLAGS --ws"
FLAGS="$FLAGS --ws --ws.port=8546"

# Increase blob slots for tests
FLAGS="$FLAGS --txpool.blobslots=1000"
Expand Down
2 changes: 1 addition & 1 deletion clients/erigon/mapper.jq
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def to_bool:
"grayGlacierBlock": env.HIVE_FORK_GRAY_GLACIER|to_int,
"mergeNetsplitBlock": env.HIVE_MERGE_BLOCK_ID|to_int,
"terminalTotalDifficulty": env.HIVE_TERMINAL_TOTAL_DIFFICULTY|to_int,
"terminalTotalDifficultyPassed": true,
"terminalTotalDifficultyPassed": (if env.HIVE_TERMINAL_TOTAL_DIFFICULTY_PASSED == null then 1 else env.HIVE_TERMINAL_TOTAL_DIFFICULTY_PASSED|to_bool end),
"shanghaiTime": env.HIVE_SHANGHAI_TIMESTAMP|to_int,
"cancunTime": env.HIVE_CANCUN_TIMESTAMP|to_int,
}|remove_empty
Expand Down
1 change: 1 addition & 0 deletions simulators/ethereum/rpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var clientEnv = hivesim.Params{
"HIVE_CLIQUE_PERIOD": "1",
"HIVE_CLIQUE_PRIVATEKEY": "9c647b8b7c4e7c3490668fb6c11473619db80c93704c70893d3813af4090c39c",
"HIVE_MINER": "658bdf435d810c91414ec09147daa6db62406379",
"HIVE_TERMINAL_TOTAL_DIFFICULTY_PASSED": "0",
}

var files = map[string]string{
Expand Down

0 comments on commit 91d2ae9

Please sign in to comment.