Skip to content

Commit 52da30b

Browse files
committed
update
1 parent a353cb8 commit 52da30b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

go-ethereum/core/types/block.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ type Header struct {
105105
// ParentBeaconRoot was added by EIP-4788 and is ignored in legacy headers.
106106
ParentBeaconRoot *common.Hash `json:"parentBeaconBlockRoot" rlp:"optional"`
107107

108-
//BlockHash is the hash of the block reported by the node.
108+
// !!ADDED BY ETHKIT!!
109+
// BlockHash is the hash of the block reported by the node.
109110
//
110111
// NOTE: this field is added by ethkit, as go-ethereum does not have this
111112
// because it computes the hash from the rlp encoding.
112113
// We've also added `ComputedBlockHash()` method for the block hash as
113114
// computed by rlp encoding.
114115
BlockHash common.Hash `json:"hash"`
116+
115117
// RequestsHash was added by EIP-7685 and is ignored in legacy headers.
116118
RequestsHash *common.Hash `json:"requestsHash" rlp:"optional"`
117119
}

go-ethereum/core/types/receipt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ type Receipt struct {
7272
BlockNumber *big.Int `json:"blockNumber,omitempty"`
7373
TransactionIndex uint `json:"transactionIndex"`
7474

75+
// !!ADDED BY ETHKIT!!
7576
// NOTE: go-ethereum doesn't include these types on the object,
7677
// even though they are available on the eth_getTransactionReceipt payload
7778
From common.Address `json:"from"`

0 commit comments

Comments
 (0)