warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

[BUG] - no prevention of proecessing duplicate interactions returned from GQL #485

Closed dtfiedler closed 12 months ago

dtfiedler commented 12 months ago

Describe the bug When fetching interactions from GQL - duplicate interactions (having the same txId) are not prevented from being evaluated twice, resulting in unintended state changes.

To Reproduce

Expected behavior Each interaction ID is only processed once.

Proposed Change Proposed change here

Desktop (please complete the following information):

ppedziwiatr commented 12 months ago

ok, I've accepted the version with the map for now, as I've noted on discord - we will soon introduce processing of interactions in 'batches', so memory usage should no longer be a concern.