File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments