Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ccade8a
Move `ClaimQueueState` to subsystem-util
tdimitrov Nov 28, 2024
263b28b
`PerLeafClaimQueueState` implementation
tdimitrov Nov 29, 2024
c526b4c
Use `VecDeque` to keep claims
tdimitrov Nov 29, 2024
6c9768c
Track leaves in `PerLeafClaimQueueState`
tdimitrov Dec 2, 2024
6a1a027
Tests in separate modules
tdimitrov Dec 9, 2024
0471aab
Track the candidate hashes we have made claims for in `ClaimQueueState`
tdimitrov Dec 9, 2024
67b2ffb
ClaimQueueState: Track para id for each candidate and support claims …
tdimitrov Dec 13, 2024
3f42f17
claims handling in backing
tdimitrov Dec 16, 2024
85d6082
claims handling in collator protocol
tdimitrov Dec 16, 2024
a8cf6b7
Introduce `ClaimState` in `ClaimQueueState` - tests not working
tdimitrov Dec 17, 2024
4111622
`ClaimedSlots` message in backing + mark seconded slots
tdimitrov Dec 17, 2024
e4cbc7d
`dequeue_next_collation_and_fetch`in collator protocol uses claim que…
tdimitrov Dec 17, 2024
31029e3
Fixes in backing
tdimitrov Dec 17, 2024
0b927b0
small fixes in collator protocol
tdimitrov Dec 17, 2024
360971f
Cleanup claim_queue_state
tdimitrov Dec 17, 2024
a6d58f8
Simplify collator protocol v1 claim check
tdimitrov Dec 17, 2024
c0a9083
claim queue state: `ClaimState` always has got the candidate hash
tdimitrov Dec 17, 2024
2b34022
More tests for claim_queue_state
tdimitrov Dec 18, 2024
4875b4f
Add `fork_from_state` + some more tests
tdimitrov Dec 19, 2024
4d172ec
Fixes in backing
tdimitrov Jan 2, 2025
56e8e18
Keep track on claims for all cores
tdimitrov Jan 7, 2025
12f4bbc
Remove unused function from `PerLeafClaimQueueState`
tdimitrov Jan 7, 2025
32094af
Fix leaf update
tdimitrov Jan 7, 2025
85ece50
More logs in claim_queue_state
tdimitrov Jan 8, 2025
fad223a
More logs in `seconding_sanity_check`
tdimitrov Jan 8, 2025
2ffbb83
Fix a return value in `PerLeafClaimQueueState`
tdimitrov Jan 10, 2025
2a13c0c
Various small fixes
tdimitrov Jan 10, 2025
07fa67f
`ClaimedSlots` -> `PendingSlots`
tdimitrov Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions polkadot/node/core/backing/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,24 @@ pub enum Error {

#[error("Runtime API returned None for executor params")]
MissingExecutorParams,

#[error("No free slot in claim queue for candidate")]
NoFreeSlotInClaimQueue,

#[error("Failed to send claimed slots")]
SendClaimedSlots,

#[error("Falied to send `CanClaim` response")]
SendCanClaim,

#[error("ChainApiSubsystem channel closed before receipt")]
BlockHeader(#[source] oneshot::Canceled),

#[error("Can't get block header from ChainApiSubsystem")]
ChainApi(#[source] polkadot_node_subsystem::ChainApiError),

#[error("Block header not found for relay parent {0:?}")]
MissingBlockHeader(polkadot_primitives::Hash),
}

/// Utility for eating top level errors and log them.
Expand Down
Loading