Skip to content

Commit 67dd408

Browse files
committed
fix: Fix slow tx processing on some edge cases
1 parent 7876fa5 commit 67dd408

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hathor/consensus/transaction_consensus.py

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ def update_voided_info(self, tx: Transaction) -> None:
234234
for h in meta.conflict_with or []:
235235
conflict_tx = cast(Transaction, tx.storage.get_transaction(h))
236236
conflict_tx_meta = conflict_tx.get_metadata()
237+
if conflict_tx_meta.first_block is not None:
238+
continue
237239
if conflict_tx_meta.voided_by:
238240
self.mark_as_voided(conflict_tx)
239241

0 commit comments

Comments
 (0)