Skip to content

Commit 3fc867c

Browse files
authored
integration test: add test for engine_newPayloadV2 (#221)
1 parent 6b1aa2a commit 3fc867c

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"request": {
4+
"jsonrpc": "2.0",
5+
"method": "engine_newPayloadV2",
6+
"params": [
7+
{
8+
"parentHash":"0x405f74886b576b8e3e5ab0ddffef88589f283faad5bb774674d2c866e8d7387d",
9+
"feeRecipient":"0x05295a0ac05d2165b061cd44907c53b7a85e95ff",
10+
"stateRoot":"0x16f1ebc351beef439819f227cab1bb5baed3f73bf919ac047b6bc082513ba973",
11+
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
12+
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
13+
"prevRandao":"0x40ffdb1c880a9801120c36314bdbe47f8185759e44e15acc2a87772c596ac421",
14+
"blockNumber":"0x104f40b",
15+
"gasLimit":"0x1c9c380",
16+
"baseFeePerGas":"0x71b75e13d",
17+
"gasUsed":"0x0",
18+
"timestamp":"0x6443d0a7",
19+
"extraData":"0x",
20+
"blockHash":"0xbc544f8e92ffa5b92be1a560c59d91dd1d664f9c8e51fb8418be169ec6c3549b",
21+
"transactions": [],
22+
"withdrawals":[{"index":"0x1058ed","validatorIndex":"0x5a7e3","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbaa446"},{"index":"0x1058ee","validatorIndex":"0x5a7e4","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbae310"},{"index":"0x1058ef","validatorIndex":"0x5a7e5","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbaef81"},{"index":"0x1058f0","validatorIndex":"0x5a7e6","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbaf986"},{"index":"0x1058f1","validatorIndex":"0x5a7e7","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xba58e2"},{"index":"0x1058f2","validatorIndex":"0x5a7e8","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbad619"},{"index":"0x1058f3","validatorIndex":"0x5a7e9","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbb1b03"},{"index":"0x1058f4","validatorIndex":"0x5a7ea","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xbab989"},{"index":"0x1058f5","validatorIndex":"0x5a7eb","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xb9b7e5"},{"index":"0x1058f6","validatorIndex":"0x5a7ec","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xb9bce2"},{"index":"0x1058f7","validatorIndex":"0x5a7ed","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xba26e9"},{"index":"0x1058f8","validatorIndex":"0x5a7ee","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xb9fac9"},{"index":"0x1058f9","validatorIndex":"0x5a7ef","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xb9dc69"},{"index":"0x1058fa","validatorIndex":"0x5a7f0","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xb9f665"},{"index":"0x1058fb","validatorIndex":"0x5a7f1","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0xba2cb7"},{"index":"0x1058fc","validatorIndex":"0x5a7f2","address":"0xb9d7934878b5fb9610b3fe8a5e441e8fad7e293f","amount":"0x2b76fbc"}]
23+
}
24+
],
25+
"id": 1
26+
},
27+
"response": {
28+
"id": 1,
29+
"jsonrpc": "2.0"
30+
}
31+
}
32+
]
33+

integration/run_tests.py

+10
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@
150150
"mainnet/trace_replayBlockTransactions/test_19.tar", # diff on gasCost and too big
151151
"mainnet/trace_replayBlockTransactions/test_20.tar", # diff on gasCost and too big
152152
"mainnet/trace_replayBlockTransactions/test_21.tar", # diff on gasCost and too big
153+
"mainnet/engine_forkchoiceUpdatedV1/test_01.json", # exception when invoke execution interface
154+
"mainnet/engine_forkchoiceUpdatedV2/test_01.json", # exception when invoke execution interface
155+
"mainnet/engine_getPayloadBodiesByHashV1/test_01.json", # exception when invoke execution interface
156+
"mainnet/engine_getPayloadBodiesByHashV1/test_02.json", # exception when invoke execution interface
157+
"mainnet/engine_getPayloadBodiesByRangeV1/test_01.json", # exception when invoke execution interface
158+
"mainnet/engine_getPayloadBodiesByRangeV1/test_02.json", # exception when invoke execution interface
159+
"mainnet/engine_getPayloadBodiesByRangeV1/test_03.json", # exception when invoke execution interface
160+
"mainnet/engine_newPayloadV1/test_01.json", # exception when invoke execution interface
161+
"mainnet/engine_newPayloadV2/test_01.json", # exception when invoke execution interface
162+
"mainnet/erigon_forks/test_1.json", # exception when invoke execution interface
153163
"mainnet/engine_exchangeCapabilities/test_1.json" # diff on supported API list
154164
]
155165

0 commit comments

Comments
 (0)