File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 66 BIGINT_1 ,
77 BIGINT_8 ,
88 KECCAK256_RLP ,
9- KECCAK256_RLP_RH ,
9+ SHA256_EMPTY_RH ,
1010 Lock ,
1111 MapDB ,
1212 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 11import { secp256k1 } from 'ethereum-cryptography/secp256k1.js'
2+ import { sha256 } from 'ethereum-cryptography/sha256'
23
34import { hexToBytes } from './bytes.js'
45
@@ -67,13 +68,7 @@ export const KECCAK256_RLP = hexToBytes(KECCAK256_RLP_S)
6768/**
6869 * Keccak-256 hash of the RLP of an empty requests hash
6970 */
70- export const KECCAK256_RLP_RH_S =
71- export const SHA256_EMPTY_RH_S = sha256 ( new Uint8Array ( [ 0 , 1 , 2 ] ) )
72-
73- /**
74- * Keccak-256 hash of the RLP of an empty requests hash
75- */
76- export const SHA256_EMPTY_RH = hexToBytes ( SHA256_EMPTY_RH_S )
71+ export const SHA256_EMPTY_RH = sha256 ( new Uint8Array ( [ 0 , 1 , 2 ] ) )
7772
7873/**
7974 * RLP encoded empty string
You can’t perform that action at this time.
0 commit comments