From a6be86325c56b458295c163200c295b43c44f2e0 Mon Sep 17 00:00:00 2001 From: Paladz Date: Mon, 15 Jul 2019 14:56:38 +0800 Subject: [PATCH] change the ts (#284) --- federation/synchron/sidechain_keeper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/federation/synchron/sidechain_keeper.go b/federation/synchron/sidechain_keeper.go index 7f2f9d6a..d308e14c 100644 --- a/federation/synchron/sidechain_keeper.go +++ b/federation/synchron/sidechain_keeper.go @@ -159,7 +159,7 @@ func (s *sidechainKeeper) processDepositTx(db *gorm.DB, block *types.Block, txIn Status: common.CrossTxPendingStatus, }).UpdateColumn(&orm.CrossTransaction{ DestBlockHeight: sql.NullInt64{int64(block.Height), true}, - DestBlockTimestamp: sql.NullInt64{int64(block.Timestamp), true}, + DestBlockTimestamp: sql.NullInt64{int64(block.Timestamp / 1000), true}, DestBlockHash: sql.NullString{blockHash.String(), true}, DestTxIndex: sql.NullInt64{int64(txIndex), true}, DestTxHash: sql.NullString{tx.ID.String(), true}, @@ -200,7 +200,7 @@ func (s *sidechainKeeper) processWithdrawalTx(db *gorm.DB, block *types.Block, t ormTx := &orm.CrossTransaction{ ChainID: s.chainID, SourceBlockHeight: block.Height, - SourceBlockTimestamp: block.Timestamp, + SourceBlockTimestamp: block.Timestamp / 1000, SourceBlockHash: blockHash.String(), SourceTxIndex: uint64(txIndex), SourceMuxID: muxID.String(), -- 2.11.0