Skip to content

Commit

Permalink
Merge pull request #1270 from smartcontractkit/bug/light-clients
Browse files Browse the repository at this point in the history
Remove required logIndex and transactionIndex for light client support
  • Loading branch information
jleeh authored May 28, 2019
2 parents f8c960c + 2083f7f commit e850866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions core/store/models/eth.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ type Log struct {
// hash of the transaction
TxHash common.Hash `json:"transactionHash"`
// index of the transaction in the block
TxIndex uint `json:"transactionIndex" gencodec:"required"`
TxIndex uint `json:"transactionIndex"`
// hash of the block in which the transaction was included
BlockHash common.Hash `json:"blockHash"`
// index of the log in the receipt
Index uint `json:"logIndex" gencodec:"required"`
Index uint `json:"logIndex"`

// 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.
Expand Down
18 changes: 8 additions & 10 deletions core/store/models/gen_log_json.go
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e850866

Please sign in to comment.