core/types: Log.Index is the index of Block, not Receipt

This commit is contained in:
Delweng Zheng 2018-10-08 18:43:07 +08:00
parent c5cb214f68
commit 14c63ac5bd

View file

@ -47,7 +47,7 @@ type Log struct {
TxIndex uint `json:"transactionIndex" gencodec:"required"`
// hash of the block in which the transaction was included
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"`
// The Removed field is true if this log was reverted due to a chain reorganisation.