Skip to content
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

clients/erigon, simulators/ethereum/rpc: patch RPC tests for erigon #953

Merged
merged 3 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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