Commit 31c4e3a1 authored by Wenbiao Zheng's avatar Wenbiao Zheng Committed by Felix Lange

core/types: Log.Index is the index in block, not receipt (#17866)

parent 1d3d4a4d
...@@ -47,7 +47,7 @@ type Log struct { ...@@ -47,7 +47,7 @@ type Log struct {
TxIndex uint `json:"transactionIndex" gencodec:"required"` TxIndex uint `json:"transactionIndex" gencodec:"required"`
// hash of the block in which the transaction was included // hash of the block in which the transaction was included
BlockHash common.Hash `json:"blockHash"` BlockHash common.Hash `json:"blockHash"`
// index of the log in the receipt // index of the log in the block
Index uint `json:"logIndex" gencodec:"required"` Index uint `json:"logIndex" gencodec:"required"`
// The Removed field is true if this log was reverted due to a chain reorganisation. // The Removed field is true if this log was reverted due to a chain reorganisation.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment