This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 371
Limit number of blocks per level (2nd attempt) #1559
Merged
Merged
Changes from 18 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
b1db89b
Temporary hack to fetch leaves from parachain block import
davxy c211faa
Merge branch 'master' into davxy/remove-leaves
davxy e9bd438
Working temporary PoC implementation
davxy 8aaf2e8
Merge branch 'master' into davxy/remove-leaves
davxy e0a7da1
TEMPORARY COMMIT
davxy 48367c6
Test excercising leaves pruning feature
davxy 0613b3b
Removed global backend hack and introduced configurable leaves level …
davxy 0ddaedc
Cleanup
davxy e811887
Nitpicks
davxy be75d7b
Removed debug logs
davxy bd8852b
Adjust leaves per level default value to be equal to the substrate ba…
davxy 5b299dd
Better docs
davxy 6e3cef9
Don't rely on the backend implementation order for the leaves
davxy 7437611
Merge branch 'master' into davxy/remove-leaves-portable
davxy 7453fe0
Leaves monitoring code encapsulation
davxy 45fc0d1
Fix panic for unsigned subtraction underflow
davxy 12427d5
Cargo fmt
davxy b2c197f
Improval leaves cache insertion/deletion strategy
davxy 0c81d6b
Apply suggestions from code review
davxy aabc69a
Fix to default level limit
davxy 55e598e
Remove redundant type
davxy d939757
Allow removal of non-leaves blocks and restore from backend
davxy ca4b383
Encapsulate limit monitor in its own module
davxy 9c13d60
Proper cleanup for descendants
davxy 765b59a
Apply suggestions from code review
davxy ffeeb22
Optimization
davxy 7e6ed47
Fix
davxy 5dbfe14
Fix typo
davxy 2d9242c
Nit. Rename some fresher to freshest
davxy eff06c5
Dedicated ParachainBlockImport constructor with explicit LevelLimit
davxy 7a8d663
Apply suggestions from code review
davxy 4f15278
Fmt
davxy cc60027
Fix typo
davxy 48e0cc9
Apply suggestions from code review
davxy 7b51bb0
Use block number instead of u64 for import counter
davxy a9d0b1e
Separate target find and removal logic
davxy 27e8f04
Code adjustments
davxy b675d48
Refactory to reduce cognitive complexity
davxy 5b5f1d0
Merge branch 'master' into davxy/remove-leaves-portable
davxy 1029cff
Apply suggestions from code review
davxy 1bc4e61
Fix type
davxy d8f1c84
Restore monitor within the constructor
davxy 9766f86
Rename Monitor 'update' to 'block_imported'
davxy 19695b4
Keep track of invalidated leaves
davxy 77e2549
Check import before add block to the monitor
davxy 8ecb772
Update test
davxy 3d86b2e
Adjust log levels
davxy 59fcb7a
[ci] Apply cargo-fmt
283d33b
Extra debugging logs
davxy fd939e9
Added target to debug logs
davxy bbde030
Report errors as such
davxy 7dd4ebe
Added extra log to the monitor restore method
davxy c89b2c2
Merge branch 'master' into davxy/remove-leaves-portable
davxy f08c6e4
Fix after master merge
davxy 3cd5d31
Bugfix: level monitor cache should use block 'post-hash'
davxy f0c18c1
TEMPORARY
davxy d945832
Merge branch 'master' into davxy/remove-leaves-portable
davxy 01c37b7
Minor tweaks
davxy 70c7c7e
Merge branch 'master' into davxy/remove-leaves-portable
davxy 61304ec
Small code refactory
davxy e92d651
Invalidate leaf only on removal
davxy bc1643d
Removed temporary logs
davxy 408580e
Explicit recovery for announced candidate blocks (#1891)
davxy f396157
Merge branch 'master' into davxy/remove-leaves-portable
davxy 92bb6ac
Fix after master merge
davxy 819ade6
Merge branch 'master' into davxy/remove-leaves-portable
davxy 8886f67
Moved block recovery related types in pov-recovery crate
davxy 0eff586
Fix after refactory
davxy 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.
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.