Skip to content

Commit

Permalink
Better README
Browse files Browse the repository at this point in the history
  • Loading branch information
Flawm committed Jul 9, 2022
1 parent 064ab36 commit f1cd711
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

Include the transaction instructions atomically with transactions when you want to guarantee they don't run twice.

This uses an on-chain bitmap that you create initially, that you then use in the later transactions.
This uses an on-chain bitmap that you create initially, that you then use in the later transactions. It is left up to the client to interpret which bits represent transactions.

One workflow can look like this

1. Estimate the total number of transactions you are going to run
2. Create a map account accomodating this length divided by 8
3. Loop over your data and build the transactions, in each one include a transaction to mark the bit, where the bit is the nth loop iteration
4. Save your transactions & asynchronously send them with no worries of a double spend and no worry about trying to confirm them

0 comments on commit f1cd711

Please sign in to comment.