aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/log.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2017-04-06 16:38:21 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-04-06 16:38:21 +0800
commit3d8de95f999de6f52f0c1605eb2913278f1d87d2 (patch)
tree1906f5ec11dbbd304bb30f3e75c117727a4d1e79 /core/types/log.go
parent24b9860c1bc214d2db943bc69117818311406bdb (diff)
downloadgo-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar
go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.gz
go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.bz2
go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.lz
go-tangerine-3d8de95f999de6f52f0c1605eb2913278f1d87d2.tar.xz
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/log.go')
-rw-r--r--core/types/log.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/types/log.go b/core/types/log.go
index 57fc7b363..be5de38da 100644
--- a/core/types/log.go
+++ b/core/types/log.go
@@ -32,28 +32,28 @@ import (
type Log struct {
// Consensus fields:
// address of the contract that generated the event
- Address common.Address `json:"address"`
+ Address common.Address `json:"address" gencodec:"required"`
// list of topics provided by the contract.
- Topics []common.Hash `json:"topics"`
+ Topics []common.Hash `json:"topics" gencodec:"required"`
// supplied by the contract, usually ABI-encoded
- Data []byte `json:"data"`
+ Data []byte `json:"data" gencodec:"required"`
// Derived fields. These fields are filled in by the node
// but not secured by consensus.
// block in which the transaction was included
- BlockNumber uint64 `json:"blockNumber" optional:"yes"`
+ BlockNumber uint64 `json:"blockNumber"`
// hash of the transaction
- TxHash common.Hash `json:"transactionHash"`
+ TxHash common.Hash `json:"transactionHash" gencodec:"required"`
// index of the transaction in the block
- TxIndex uint `json:"transactionIndex"`
+ TxIndex uint `json:"transactionIndex" gencodec:"required"`
// hash of the block in which the transaction was included
- BlockHash common.Hash `json:"blockHash" optional:"yes"`
+ BlockHash common.Hash `json:"blockHash"`
// index of the log in the receipt
- Index uint `json:"logIndex"`
+ Index uint `json:"logIndex" gencodec:"required"`
// The Removed field is true if this log was reverted due to a chain reorganisation.
// You must pay attention to this field if you receive logs through a filter query.
- Removed bool `json:"removed" optional:"yes"`
+ Removed bool `json:"removed"`
}
type logMarshaling struct {