-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[pallet-transaction-storage] Improved check_proof check + tests + docs
#10153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 31 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
ee90a9b
Add ultimate test for checking all the chunk index build/verify proof…
bkontur d5506de
Refactor proof verification to separate `ensure_chunk_proof` for easi…
bkontur 1453f12
Actual fix
bkontur 4c3d67f
fmt
bkontur cd2d2d3
Fix for 0 total_chunks
bkontur 3085804
Unify usage of num_chunks/random_chunk + more docs
bkontur 98ef883
Fix the correct docs
bkontur d0bc14c
clippy
bkontur 92923d7
Update from github-actions[bot] running command 'fmt'
github-actions[bot] f0eed0b
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] bc743b3
Update substrate/primitives/transaction-storage-proof/src/lib.rs
bkontur b306af7
Update prdoc/pr_10153.prdoc
bkontur 98fcd56
Update substrate/primitives/transaction-storage-proof/src/lib.rs
bkontur 29ffae2
Update substrate/frame/transaction-storage/src/lib.rs
bkontur f670f90
Update substrate/primitives/transaction-storage-proof/src/lib.rs
bkontur 513fa70
Rename to `verify_chunk_proof` + doc
bkontur f96557b
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur 04cb7d7
Return `Ok(None)` when empty transactions/chunks
bkontur 36aea9d
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 23eee5b
Introduced `ChunkIndex`
bkontur 7d1b78a
Removed `ChunkCount` storage item
bkontur 15ad008
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 4556d1f
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur ba6a7a1
Update prdoc/pr_10153.prdoc
bkontur d988c36
Update substrate/frame/transaction-storage/src/lib.rs
bkontur 03def22
Nits for `on_initialize` weight metering
bkontur c6057b0
Merge remote-tracking branch 'origin/master' into bko-pallet-tx-stora…
bkontur 59e7642
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur fae8ba9
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur f0c12a8
Update substrate/frame/transaction-storage/src/lib.rs
bkontur 596b27b
Update substrate/frame/transaction-storage/src/lib.rs
bkontur cd1fb01
Update substrate/frame/transaction-storage/src/lib.rs
bkontur 390ee76
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur fca0b92
Chage rustdoc
bkontur 97cf2fa
Return error instead
bkontur b7d6d08
Merge remote-tracking branch 'origin/master' into bko-pallet-tx-stora…
bkontur 084a681
Update substrate/frame/transaction-storage/src/lib.rs
bkontur 4e35eab
Merge branch 'master' into bko-pallet-tx-storage-nits
bkontur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| title: '[pallet-transaction-storage] Improved `check_proof` check + tests + docs' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| **This PR:** | ||
|
|
||
| * Fixes `check_proof` and its `binary_search_by_key` chunk | ||
| * Adds the `verify_chunk_proof_works` test, which covers all possible chunk index build/verify proof roundtrips (to catch all corner cases) | ||
| * Improves docs around `pallet-transaction-storage` | ||
| crates: | ||
| - name: pallet-transaction-storage | ||
| bump: major | ||
| - name: sp-transaction-storage-proof | ||
| bump: minor | ||
| - name: sp-io | ||
| bump: patch |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.