Fix infinity loop when syncing mempool
This commit is contained in:
parent
e8b220455e
commit
445fbf44f0
@ -183,6 +183,7 @@ func (sm *syncManager) doInitialMempoolSync() error {
|
|||||||
txsToRetrieve = txsToRetrieve[policy.MaxTransactionCountForRetrieving:]
|
txsToRetrieve = txsToRetrieve[policy.MaxTransactionCountForRetrieving:]
|
||||||
} else {
|
} else {
|
||||||
txHashes = txsToRetrieve
|
txHashes = txsToRetrieve
|
||||||
|
txsToRetrieve = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
getMempoolTxArg := wire.GetMempoolTxsArg{
|
getMempoolTxArg := wire.GetMempoolTxsArg{
|
||||||
|
Loading…
Reference in New Issue
Block a user