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 2.7k
rpc/chainHead: Fix pruned blocks events from forks #13379
Merged
Merged
Changes from 5 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ec1b613
rpc/chainhead: Test unpin for noncanonical prunned blocks
lexnv 1236d59
rpc/tests: Ensure fork is not reported by the Finalized event
lexnv 477029f
rpc/chainhead: Detect pruned forks to ignore from events
lexnv e3531a1
rpc/tests: Check unpin can be called on pruned hashes
lexnv 5288cd9
Fix clippy
lexnv 904840d
rpc/chain_head: Handle race with memory blocks and notifications
lexnv 8dddb1e
rpc/chain_head: Add data config for the `follow` future
lexnv b9e8f6f
rpc/chain_head: Address feedback
lexnv a796034
rpc/chain_head: Move best block cache on the data config
lexnv 1d0b4d2
rpc/chain_head: Send new events from the finalized stream
lexnv 3bb66e4
rpc/chian_head: Report all pruned blocks
lexnv 3847c74
rpc/chain_head: Move `chainHead_follow` logic on dedicated file
lexnv 64876fa
rpc/chain_head: Delegate follow logic to `chain_head_follow`
lexnv f84c4ce
rpc/chain_head: Remove subscriptions on drop
lexnv 908d1f2
rpc/tests: Ignore pruned blocks for a longer fork
lexnv 01e98b0
rpc/tests: Check all pruned blocks are reported, not just stale heads
lexnv 33f5f10
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_pru…
lexnv eceeb92
rpc/tests: Remove println debug and fix indentation
lexnv b05f5fc
rpc/chain_head: Remove unnecessary trait bounds
lexnv 425d6e7
rpc/chain_head: Add debug log for pruned forks
lexnv 002acba
Revert "rpc/chain_head: Add debug log for pruned forks"
lexnv b585d8b
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_pru…
lexnv 04fbcff
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_pru…
lexnv 6a9c36e
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_pru…
lexnv 4140b5b
Adjust blockID for testing
lexnv aca8f3b
Update client/rpc-spec-v2/src/chain_head/chain_head_follow.rs
lexnv 6429e05
rpc/chain_head: Rename `ChainHeadFollow` to `ChainHeadFollower`
lexnv d3dd4a4
rpc/chain_head: Remove subscriptions manually
lexnv 3786aa8
rpc/chain_head: Improve log messages by adding subID and errors
lexnv c24cdc6
rpc/chain_head: Ensure `follow` stops sending events on first error
lexnv bf85692
rpc/chain_head: Use default constructor
lexnv 5ba5cd2
rpc/chain_head: Add `StartupPoint` structure
lexnv f0a40f0
rpc/chain_head: Rename `in_memory_blocks`
lexnv 47853cb
rpc/chain_head: Fix comment typo
lexnv 708aa0e
rpc/chain_head: Keep unique blocks and remove itertools
lexnv 49245dc
rpc/chain_head: Make sure `bestBlocks` events are generated in order
lexnv 095a39d
rpc/chain_head: Maintain order of reported blocks
lexnv ce35d02
rpc/chain_head: Parent of finalized block could be unpinned
lexnv 08d2344
rpc/chain_head: Fix warning
lexnv 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
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.