fix: address issues #1142, #1143, #1145 - #1236
Merged
Merged
Conversation
Emeka000#1142 - Paginate BankIndex, DonorIndex, BloodTypeIndex, StatusIndex - Add BankIndexMeta/Page, DonorIndexMeta/Page, BloodTypeIndexMeta/Page, StatusIndexMeta/Page DataKey variants to types.rs - Replace unbounded Vec<u64> indexes in storage.rs with fixed-size pages (INDEX_PAGE_SIZE=20) following the same pattern as StatusHistory - Update remove_from_status_index to scan paginated pages Emeka000#1143 - Reject duplicate unit_ids in reserve_blood - Add seen_units Map<u64,bool> dedup check before validation loop in inventory/src/lib.rs::reserve_blood, returns DuplicateBloodUnit on repeat Emeka000#1145 - Extend TTL on escrow confirmation flags - Add extend_ttl(PERSISTENT_BUMP_THRESHOLD, PERSISTENT_BUMP_TO) after setting coord_ok in release_escrow and hosp_ok in confirm_receipt, matching the pattern used everywhere else in payments/src/lib.rs
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.
closes #1142
closes #1143
closes #1145
#1142 - Paginate BankIndex, DonorIndex, BloodTypeIndex, StatusIndex
#1143 - Reject duplicate unit_ids in reserve_blood
#1145 - Extend TTL on escrow confirmation flags