nimbus-eth1/tests/merge/steps.json

143 lines
5.6 KiB
JSON

[
{
"name": "Prepare a payload",
"method":"engine_forkchoiceUpdatedV1",
"params":[
{
"headBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"safeBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"finalizedBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000"
},
{
"timestamp":"0x5",
"prevRandao":"0x0000000000000000000000000000000000000000000000000000000000000000",
"suggestedFeeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
}
],
"expect": {
"payloadStatus":{
"status":"VALID",
"latestValidHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"validationError":null
},
"payloadId":"0xa247243752eb10b4"
}
},
{
"name": "Get the payload",
"method":"engine_getPayloadV1",
"params":[
"0xa247243752eb10b4"
],
"expect": {
"parentHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"feeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"stateRoot":"0xca3149fa9e37db08d1cd49c9061db1002ef1cd58db2210f2115c8c989b2bdf45",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"prevRandao":"0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber":"0x1",
"gasLimit":"0x1c95111",
"gasUsed":"0x0",
"timestamp":"0x5",
"extraData":"0x",
"baseFeePerGas":"0x7",
"blockHash":"0x6359b8381a370e2f54072a5784ddd78b6ed024991558c511d4452eb4f6ac898c",
"transactions":[]
}
},
{
"name": "Execute the payload",
"method":"engine_newPayloadV1",
"params":[
{
"parentHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"feeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"stateRoot":"0xca3149fa9e37db08d1cd49c9061db1002ef1cd58db2210f2115c8c989b2bdf45",
"receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"prevRandao":"0x0000000000000000000000000000000000000000000000000000000000000000",
"blockNumber":"0x1",
"gasLimit":"0x1c9c380",
"gasUsed":"0x0",
"timestamp":"0x5",
"extraData":"0x",
"baseFeePerGas":"0x7",
"blockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"transactions":[]
}
],
"expect": {
"status":"VALID",
"latestValidHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"validationError":null
}
},
{
"name": "Update the forkchoice",
"method":"engine_forkchoiceUpdatedV1",
"params":[
{
"headBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"safeBlockHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"finalizedBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a"
},
null
],
"expect":{
"payloadStatus":{
"status":"VALID",
"latestValidHash":"0x3559e851470f6e7bbed1db474980683e8c315bfce99b2a6ef47c057c04de7858",
"validationError":null
},
"payloadId":null
}
},
{
"name": "Invalid payload length",
"method":"engine_getPayloadV1",
"params":[
"0x01"
],
"error":{
"code":-32602,
"message":"invalid argument 0: invalid payload id \"0x01\": hex string has length 2, want 16 for PayloadID"
}
},
{
"name": "Unknown paylod",
"method":"engine_getPayloadV1",
"params":[
"0x0000000000000000"
],
"error":{
"code":-32001,
"message":"Unknown payload"
}
},
{
"name": "Invalid head",
"method":"engine_forkchoiceUpdatedV1",
"params":[
{
"headBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000001",
"safeBlockHash":"0x3b8fb240d288781d4aac94d3fd16809ee413bc99294a085798a589dae51ddd4a",
"finalizedBlockHash":"0x0000000000000000000000000000000000000000000000000000000000000000"
},
{
"timestamp":"0x5",
"prevRandao":"0x0000000000000000000000000000000000000000000000000000000000000000",
"suggestedFeeRecipient":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"
}
],
"expect":{
"payloadStatus":{
"status":"SYNCING",
"latestValidHash":null,
"validationError":null
},
"payloadId":null
}
}
]