@ethereumjs/block v3.6.3
GrayGlacier HF Support
This release adds support for the GrayGlacier HF - see PR #1984 - which delays the difficulty bomb to mid September 2022 on mainnet to allow for the Merge HF to take place before the difficulty bomb triggers.
Please note that for backwards-compatibility reasons Common is still instantiated with istanbul
by default.
A GrayGlacier block can be instantiated with:
import { Block } from '@ethereumjs/block'
import Common, { Chain, Hardfork } from '@ethereumjs/common'
const common = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.GrayGlacier })
const block = Block.fromBlockData({
// Provide your block data here or use default values
}, { common })