Add protection on Archive that avoids the Duplicate batch issue#27
Open
tiagoicp wants to merge 4 commits intoNatLabs:mainfrom
Open
Add protection on Archive that avoids the Duplicate batch issue#27tiagoicp wants to merge 4 commits intoNatLabs:mainfrom
tiagoicp wants to merge 4 commits intoNatLabs:mainfrom
Conversation
Author
|
Fixes Issue: #23 |
Author
|
Opened an issue on Mops to better understand the desired new behaviour. |
Author
|
Hi @tomijaga , think this is ready for review. I have added specs that showcase it's allowing to be duplicated. The original problem is exposed on the issue (#23), and in short, because it's an intercanister call, you may have multiple transactions in Ledger while it waits for the callback that clears the SB (Stable Buffer - transactions). So, this is an issue that typically arises in a peak transactions moment. This fix was tested, it's not greedy, and tried for it to be fully compatible to any state of the archive. Example: that it already has duplicated txs, and therefore can't use total_txs - 1 to be the last_tx_index. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.