diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2017-04-06 16:38:21 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-06 16:38:21 +0800 |
commit | 3d8de95f999de6f52f0c1605eb2913278f1d87d2 (patch) | |
tree | 1906f5ec11dbbd304bb30f3e75c117727a4d1e79 /core/types/receipt.go | |
parent | 24b9860c1bc214d2db943bc69117818311406bdb (diff) | |
download | go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.gz go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.zst go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.zip |
core, core/types: regenerate JSON marshaling, add "hash" to headers (#13868)
* Makefile: fix devtools target
* core: regenerate genesis marshaling with fjl/gencodec@cbfa5be5a8a8
* core/types: regenerate marshaling methods with fjl/gencodec@cbfa5be5a8a8
* core/types: add "hash" to JSON headers
Diffstat (limited to 'core/types/receipt.go')
-rw-r--r-- | core/types/receipt.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/types/receipt.go b/core/types/receipt.go index 5bfcb15fc..ef6f6a2bb 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -31,15 +31,15 @@ import ( // Receipt represents the results of a transaction. type Receipt struct { // Consensus fields - PostState []byte `json:"root"` - CumulativeGasUsed *big.Int `json:"cumulativeGasUsed"` - Bloom Bloom `json:"logsBloom"` - Logs []*Log `json:"logs"` + PostState []byte `json:"root" gencodec:"required"` + CumulativeGasUsed *big.Int `json:"cumulativeGasUsed" gencodec:"required"` + Bloom Bloom `json:"logsBloom" gencodec:"required"` + Logs []*Log `json:"logs" gencodec:"required"` // Implementation fields (don't reorder!) - TxHash common.Hash `json:"transactionHash"` - ContractAddress common.Address `json:"contractAddress" optional:"true"` - GasUsed *big.Int `json:"gasUsed"` + TxHash common.Hash `json:"transactionHash" gencodec:"required"` + ContractAddress common.Address `json:"contractAddress"` + GasUsed *big.Int `json:"gasUsed" gencodec:"required"` } type receiptMarshaling struct { |