Skip to content

Commit 2b39d61

Browse files
committed
feat: update hash method for adapt bsc prague hardfork
1 parent fbecb25 commit 2b39d61

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

core/types/block.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ type Header struct {
9393

9494
// ParentBeaconRoot was added by EIP-4788 and is ignored in legacy headers.
9595
ParentBeaconRoot *common.Hash `json:"parentBeaconBlockRoot" rlp:"optional"`
96+
97+
// RequestsHash was added by EIP-7685 and is ignored in legacy headers.
98+
RequestsHash *common.Hash `json:"requestsHash" rlp:"optional"`
9699
}
97100

98101
// field type overrides for gencodec

core/types/gen_header_json.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/types/gen_header_rlp.go

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)