You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A connector could tell its peers "if you send two transactions with the same txid, then I'll charge you twice". This means only the sender's plugin, as well as plugins that listen on ledgers which don't guarantee to trigger the same incoming_prepare event only once, will need to store a complete log of transactions and guarantee transaction id idempotency. Other plugins can gain a speed up and remove a bottleneck by treating each transfer in isolation, without comparing its txid to anything.
The text was updated successfully, but these errors were encountered:
What you're describing is not really making it optional. The sendTransfer function must enforce that the transfers are idempotent with respect to the transfer ID. However, in plugins where there is no underlying ledger I think it's fair to say that this uniqueness will only be enforced on the sending side. It would be good to call this out though in the plugin docs.
Right, transaction id's are a concern at the LPI level. We can relax the constraint so that no two transfers with the same id can be pending at the same time, but once a transfer is finalized, its id could be reused again.
A connector could tell its peers "if you send two transactions with the same txid, then I'll charge you twice". This means only the sender's plugin, as well as plugins that listen on ledgers which don't guarantee to trigger the same
incoming_prepare
event only once, will need to store a complete log of transactions and guarantee transaction id idempotency. Other plugins can gain a speed up and remove a bottleneck by treating each transfer in isolation, without comparing its txid to anything.The text was updated successfully, but these errors were encountered: