@ethereumjs/block
Version:
Provides Block serialization and help functions
10 lines • 351 B
JavaScript
/**
* Returns the canonical difficulty for this block.
*
* @param block - the block whose difficulty should be calculated
* @param parentBlock - the parent of this `Block`
*/
export function ethashCanonicalDifficulty(block, parentBlock) {
return block.header.ethashCanonicalDifficulty(parentBlock.header);
}
//# sourceMappingURL=ethash.js.map