Skip to content

Commit

Permalink
Reduce tx gossip during fast sync
Browse files Browse the repository at this point in the history
  • Loading branch information
weiribao committed Apr 7, 2021
1 parent d3ea061 commit a6609a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ func (mp *Mempool) InsertTransaction(rawTx common.Bytes) error {
mp.candidateTxs.Push(txGroup)
logger.Debugf("rawTx: %v, txInfo: %v", hex.EncodeToString(rawTx), txInfo)
} else {
// Record tx during sync for gossiping purpose
mp.txBookeepper.record(rawTx)

logger.Debug("Skipping tx vefification during sync")
}

Expand Down

0 comments on commit a6609a4

Please sign in to comment.