Skip to content

Commit

Permalink
Fix uncle check
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Apr 5, 2024
1 parent 6d2e247 commit f23ad02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block/src/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { BlobEIP4844Transaction, Capability, TransactionFactory } from '@ethereu
import {
BIGINT_0,
KECCAK256_RLP,
KECCAK256_RLP_ARRAY,
Withdrawal,
bigIntToHex,
bytesToHex,
Expand Down Expand Up @@ -722,7 +723,7 @@ export class Block {
*/
uncleHashIsValid(): boolean {
if (this.uncleHeaders.length === 0) {
return equalsBytes(KECCAK256_RLP, this.header.uncleHash)
return equalsBytes(KECCAK256_RLP_ARRAY, this.header.uncleHash)
}
const uncles = this.uncleHeaders.map((uh) => uh.raw())
const raw = RLP.encode(uncles)
Expand Down

0 comments on commit f23ad02

Please sign in to comment.