Fix infinity loop when syncing mempool

This commit is contained in:
ChronosX88 2021-07-30 01:53:48 +03:00
parent e8b220455e
commit 445fbf44f0
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -183,6 +183,7 @@ func (sm *syncManager) doInitialMempoolSync() error {
txsToRetrieve = txsToRetrieve[policy.MaxTransactionCountForRetrieving:]
} else {
txHashes = txsToRetrieve
txsToRetrieve = nil
}
getMempoolTxArg := wire.GetMempoolTxsArg{