-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathrun_rpc_tests_nethermind.sh
More file actions
executable file
·50 lines (46 loc) · 1.66 KB
/
run_rpc_tests_nethermind.sh
File metadata and controls
executable file
·50 lines (46 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e # Enable exit on error
# The workspace directory, no default because run_rpc_tests has it
WORKSPACE="$1"
# The result directory, no default because run_rpc_tests has it
RESULT_DIR="$2"
# Disabled tests for Nethermind on Ethereum mainnet
DISABLED_TEST_LIST=(
# Erigon-specific namespace - not supported by Nethermind
erigon_
# Otterscan-specific namespace - not supported by Nethermind
ots_
# Engine API runs on authenticated port 8551, not 8545
engine_
# debug APIs have different results
debug_
# eth_ APIs whose result format differs between clients
eth_callBundle
eth_callMany
eth_getRawTransactionByBlockHashAndIndex
eth_getRawTransactionByHash
parity_listStorageKeys
# trace_ APIs whose result format differs between clients
trace_block
trace_filter
trace_get
trace_replayBlockTransactions
trace_replayTransaction
trace_transaction
# Admin info format differs between clients
admin_nodeInfo/test_01.json
admin_peers/test_01.json
# Mining/PoW endpoints not applicable on PoS mainnet
eth_coinbase/test_01.json
eth_getWork/test_01.json
eth_mining/test_01.json
eth_submitHashrate/test_1.json
eth_submitWork/test_1.json
# Temporary disable required block 24298763
debug_traceBlockByNumber/test_51.json
)
# Transform the array into a comma-separated string
DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")
# Call the main test runner script with the required and optional parameters
# Use do-not-compare-error-message since Nethermind error messages differ from Erigon
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "" "" "do-not-compare-error-message"