Skip to content

Commit d08e4ad

Browse files
authored
Fix inconsistent timestamp for failed transactions (#316)
1 parent 2e58711 commit d08e4ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

relayer/chainreader/indexer/transactions_indexer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ func (tIndexer *TransactionsIndexer) syncTransmitterTransactions(ctx context.Con
526526
TxDigest: txDigestHex,
527527
BlockHeight: checkpointResponse.SequenceNumber,
528528
BlockHash: blockHashBytes,
529-
BlockTimestamp: blockTimestamp,
529+
// Convert to seconds for consistency with events indexer.
530+
BlockTimestamp: blockTimestamp / 1000,
530531
Data: executionStateChanged,
531532
IsSynthetic: true,
532533
}

0 commit comments

Comments
 (0)