From a6609a4cceb4b71a136555d2e11c304a2badb7f5 Mon Sep 17 00:00:00 2001 From: Ribao Wei Date: Wed, 7 Apr 2021 08:27:35 -0700 Subject: [PATCH] Reduce tx gossip during fast sync --- mempool/mempool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mempool/mempool.go b/mempool/mempool.go index 3f75a1da..1b63e5d6 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -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") }