Skip to content

Commit

Permalink
do not use order for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Mar 25, 2024
1 parent b9b0b45 commit a4f5419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/elasticproc/logsevents/logsAndEventsProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ func (lep *logsAndEventsProcessor) prepareLogEvent(dbLog *data.Logs, event *data
Topics: hexEncodeSlice(event.Topics),
Order: event.Order,
ShardID: shardID,
TxOrder: execOrder,
}

dbEventBytes, err := json.Marshal(dbEvent)
Expand All @@ -278,6 +277,7 @@ func (lep *logsAndEventsProcessor) prepareLogEvent(dbLog *data.Logs, event *data
)
}

dbEvent.TxOrder = execOrder
dbEvent.OriginalTxHash = dbLog.OriginalTxHash
dbEvent.Timestamp = dbLog.Timestamp
dbEvent.ID = hex.EncodeToString(lep.hasher.Compute(string(dbEventBytes)))
Expand Down

0 comments on commit a4f5419

Please sign in to comment.