Skip to content

Commit a3c8e4e

Browse files
spencer-tbjochem-brouwer
authored andcommitted
packages: integrate suggestions.
1 parent e61d775 commit a3c8e4e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages/blockchain/src/blockchain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
BIGINT_1,
66
BIGINT_8,
77
KECCAK256_RLP,
8-
KECCAK256_RLP_RH,
8+
SHA256_EMPTY_RH,
99
Lock,
1010
MapDB,
1111
bigIntToHex,
@@ -1314,7 +1314,7 @@ export class Blockchain implements BlockchainInterface {
13141314
number: 0,
13151315
stateRoot,
13161316
withdrawalsRoot: common.isActivatedEIP(4895) ? KECCAK256_RLP : undefined,
1317-
requestsHash: common.isActivatedEIP(7685) ? KECCAK256_RLP_RH : undefined,
1317+
requestsHash: common.isActivatedEIP(7685) ? SHA256_EMPTY_RH : undefined,
13181318
}
13191319
if (common.consensusType() === 'poa') {
13201320
if (common.genesis().extraData) {

packages/util/src/constants.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ export const SHA256_NULL = sha256(new Uint8Array())
7070
/**
7171
* Keccak-256 hash of the RLP of an empty requests hash
7272
*/
73-
export const KECCAK256_RLP_RH_S =
74-
export const SHA256_EMPTY_RH_S = sha256(new Uint8Array([0, 1, 2]))
75-
76-
/**
77-
* Keccak-256 hash of the RLP of an empty requests hash
78-
*/
79-
export const SHA256_EMPTY_RH = hexToBytes(SHA256_EMPTY_RH_S)
73+
export const SHA256_EMPTY_RH = sha256(new Uint8Array([0, 1, 2]))
8074

8175
/**
8276
* RLP encoded empty string

0 commit comments

Comments
 (0)