4141 testValidatorKey , _ = crypto .HexToECDSA ("28c3cd61b687fdd03488e167a5d84f50269df2a4c29a2cfb1390903aa775c5d0" )
4242 testValidatorAddr = crypto .PubkeyToAddress (testValidatorKey .PublicKey )
4343
44- testMinerKey , _ = crypto .HexToECDSA ("28c3cd61b687fdd03488e167a5d84f50269df2a4c29a2cfb1390903aa775c5d0" )
45- testMinerAddr = crypto .PubkeyToAddress (testValidatorKey .PublicKey )
46-
4744 testBalance = big .NewInt (2e18 )
4845)
4946
@@ -57,7 +54,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
5754 api := NewBlockValidationAPI (ethservice , nil )
5855 parent := preMergeBlocks [len (preMergeBlocks )- 1 ]
5956
60- api .eth .APIBackend .Miner ().SetEtherbase (testMinerAddr )
57+ api .eth .APIBackend .Miner ().SetEtherbase (testValidatorAddr )
6158
6259 // This EVM code generates a log when the contract is created.
6360 logCode := common .Hex2Bytes ("60606040525b7f24ec1d3ff24c2f6ff210738839dbc339cd45a5294d85c79361016243157aae7b60405180905060405180910390a15b600a8060416000396000f360606040526008565b00" )
@@ -142,7 +139,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
142139 invalidPayload .LogsBloom = boostTypes.Bloom {}
143140 copy (invalidPayload .ReceiptsRoot [:], hexutil .MustDecode ("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" )[:32 ])
144141 blockRequest .ExecutionPayload = invalidPayload
145- copy (blockRequest .Message .BlockHash [:], hexutil .MustDecode ("0x272872d14b2a8a0454e747ed472d82d8d5ce342cfafd65fa7b77aa6de1c061d4 " )[:32 ])
142+ copy (blockRequest .Message .BlockHash [:], hexutil .MustDecode ("0x2ff468dee2e05f1f58744d5496f3ab22fdc23c8141f86f907b4b0f2c8e22afc4 " )[:32 ])
146143 require .ErrorContains (t , api .ValidateBuilderSubmissionV1 (blockRequest ), "could not apply tx 3" , "insufficient funds for gas * price + value" )
147144}
148145
0 commit comments