Merge commit 'c6863fd92bfaf2838117a38656b0ac0d47d1e970' into checkpoint/main_from_release_1.8.1_c6863fd92bfaf2838117a38656b0ac0d47d1e970

This commit is contained in:
Amine Khaldi 2023-05-12 18:07:31 +01:00
commit e76d9c56e6
No known key found for this signature in database
GPG Key ID: B1C074FFC904E2D9

View File

@ -2207,8 +2207,9 @@ class FullNode:
return MempoolInclusionStatus.FAILED, Err.ALREADY_INCLUDING_TRANSACTION
self.mempool_manager.add_and_maybe_pop_seen(spend_name)
self.log.debug(f"Processing transaction: {spend_name}")
# Ignore if syncing
if self.sync_store.get_sync_mode():
# Ignore if syncing or if we have not yet received a block
# the mempool must have a peak to validate transactions
if self.sync_store.get_sync_mode() or self.mempool_manager.peak is None:
status = MempoolInclusionStatus.FAILED
error: Optional[Err] = Err.NO_TRANSACTIONS_WHILE_SYNCING
self.mempool_manager.remove_seen(spend_name)