diff options
Diffstat (limited to 'core/types/gen_header_json.go')
-rw-r--r-- | core/types/gen_header_json.go | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go index 860622e6e..91663d9d8 100644 --- a/core/types/gen_header_json.go +++ b/core/types/gen_header_json.go @@ -1,4 +1,4 @@ -// generated by github.com/fjl/gencodec, do not edit. +// Code generated by github.com/fjl/gencodec. DO NOT EDIT. package types @@ -11,40 +11,40 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ) -func (h *Header) MarshalJSON() ([]byte, error) { +func (h Header) MarshalJSON() ([]byte, error) { type HeaderJSON struct { - ParentHash *common.Hash `json:"parentHash"` - UncleHash *common.Hash `json:"sha3Uncles"` - Coinbase *common.Address `json:"miner"` - Root *common.Hash `json:"stateRoot"` - TxHash *common.Hash `json:"transactionsRoot"` - ReceiptHash *common.Hash `json:"receiptsRoot"` - Bloom *Bloom `json:"logsBloom"` - Difficulty *hexutil.Big `json:"difficulty"` - Number *hexutil.Big `json:"number"` - GasLimit *hexutil.Big `json:"gasLimit"` - GasUsed *hexutil.Big `json:"gasUsed"` - Time *hexutil.Big `json:"timestamp"` - Extra hexutil.Bytes `json:"extraData"` - MixDigest *common.Hash `json:"mixHash"` - Nonce *BlockNonce `json:"nonce"` + ParentHash common.Hash `json:"parentHash"` + UncleHash common.Hash `json:"sha3Uncles"` + Coinbase common.Address `json:"miner"` + Root common.Hash `json:"stateRoot"` + TxHash common.Hash `json:"transactionsRoot"` + ReceiptHash common.Hash `json:"receiptsRoot"` + Bloom Bloom `json:"logsBloom"` + Difficulty *hexutil.Big `json:"difficulty"` + Number *hexutil.Big `json:"number"` + GasLimit *hexutil.Big `json:"gasLimit"` + GasUsed *hexutil.Big `json:"gasUsed"` + Time *hexutil.Big `json:"timestamp"` + Extra hexutil.Bytes `json:"extraData"` + MixDigest common.Hash `json:"mixHash"` + Nonce BlockNonce `json:"nonce"` } var enc HeaderJSON - enc.ParentHash = &h.ParentHash - enc.UncleHash = &h.UncleHash - enc.Coinbase = &h.Coinbase - enc.Root = &h.Root - enc.TxHash = &h.TxHash - enc.ReceiptHash = &h.ReceiptHash - enc.Bloom = &h.Bloom + enc.ParentHash = h.ParentHash + enc.UncleHash = h.UncleHash + enc.Coinbase = h.Coinbase + enc.Root = h.Root + enc.TxHash = h.TxHash + enc.ReceiptHash = h.ReceiptHash + enc.Bloom = h.Bloom enc.Difficulty = (*hexutil.Big)(h.Difficulty) enc.Number = (*hexutil.Big)(h.Number) enc.GasLimit = (*hexutil.Big)(h.GasLimit) enc.GasUsed = (*hexutil.Big)(h.GasUsed) enc.Time = (*hexutil.Big)(h.Time) enc.Extra = h.Extra - enc.MixDigest = &h.MixDigest - enc.Nonce = &h.Nonce + enc.MixDigest = h.MixDigest + enc.Nonce = h.Nonce return json.Marshal(&enc) } |