From acdaca878dc657ff34cb7175cb1ea98b29f13333 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Mon, 28 Aug 2023 21:15:45 +0800 Subject: [PATCH] fix bug --- bridge/internal/controller/watcher/batch_proposer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/internal/controller/watcher/batch_proposer.go b/bridge/internal/controller/watcher/batch_proposer.go index 860d8bb004..ee170b9e12 100644 --- a/bridge/internal/controller/watcher/batch_proposer.go +++ b/bridge/internal/controller/watcher/batch_proposer.go @@ -246,7 +246,7 @@ func (p *BatchProposer) proposeBatchChunks() ([]*orm.Chunk, error) { currentTimeSec := uint64(time.Now().Unix()) if dbChunks[0].StartBlockTime+p.batchTimeoutSec < currentTimeSec || - totalChunks > p.maxChunkNumPerBatch { + totalChunks == p.maxChunkNumPerBatch { if dbChunks[0].StartBlockTime+p.batchTimeoutSec < currentTimeSec { log.Warn("first block timeout", "start block number", dbChunks[0].StartBlockNumber,