ethereumjs-monorepo

@ethereumjs/block


@ethereumjs/block / ethashCanonicalDifficulty

Function: ethashCanonicalDifficulty()

ethashCanonicalDifficulty(block, parentBlock): bigint

Defined in: consensus/ethash.ts:8

Returns the canonical difficulty for this block.

Parameters

block

Block

parentBlock

Block

the parent of this Block

Returns

bigint