hypercore-one / syrius

MIT License
0 stars 0 forks source link

Fix auto receive queue logic #27

Closed vilkris4 closed 1 year ago

vilkris4 commented 1 year ago

If the node connection is lost immediately after the receive transaction has been attempted to be published, the auto receive worker will not know that the transaction was not actually published. But since the transaction's hash has been added to the processedHashes hashset the auto receive worker will not re-add the hash into the queue once the node connection is restored. This results in the transaction not being auto received.