Skip to content

Commit

Permalink
Remove randomness from mock execution payload header builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha committed Jul 23, 2024
1 parent be31109 commit 0ed3a79
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@ private ExecutionPayloadHeader mockExecutionPayloadHeader() {
.getExecutionPayloadHeaderSchema()
.createExecutionPayloadHeader(
b -> {
b.blockHash(Bytes32.random());
b.blockHash(generateMockGenesisBlockHash());
b.parentHash(Bytes32.ZERO);
b.feeRecipient(Bytes20.ZERO);
b.stateRoot(Bytes32.ZERO);
b.receiptsRoot(Bytes32.ZERO);
b.logsBloom(Bytes.random(256));
b.prevRandao(Bytes32.random());
b.logsBloom(Bytes.repeat((byte) 0x00, 256));
b.prevRandao(Bytes32.ZERO);
b.blockNumber(UInt64.ZERO);
b.gasLimit(UInt64.ONE);
b.gasLimit(UInt64.ZERO);
b.gasUsed(UInt64.ZERO);
b.timestamp(UInt64.ZERO);
b.extraData(Bytes.random(20));
b.baseFeePerGas(UInt256.ONE);
b.extraData(Bytes.repeat((byte) 0x00, 20));
b.baseFeePerGas(UInt256.ZERO);
b.transactionsRoot(Bytes32.ZERO);
// Capella
b.withdrawalsRoot(() -> Bytes32.ZERO);
Expand Down

0 comments on commit 0ed3a79

Please sign in to comment.