Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
43e30f6
add some logs/metrics about collations
sandreim Apr 11, 2025
aab734c
a bit of fmt
sandreim Apr 11, 2025
17c746d
more fmt
sandreim Apr 11, 2025
edc82d2
Full coverage for collations that were not fetched.
sandreim Apr 11, 2025
33c85db
improve code readability.
sandreim Apr 11, 2025
f5c294c
more refactor
sandreim Apr 11, 2025
c95eba5
fix
sandreim Apr 11, 2025
8a1fa21
fix tests
sandreim Apr 14, 2025
7aaa7f6
remove debug
sandreim Apr 14, 2025
7f27a1e
Merge branch 'master' into collation_to_backed
sandreim Apr 14, 2025
2d1f6ff
return correct TTL
sandreim Apr 24, 2025
a3406d5
Merge branch 'collation_to_backed' of github.com:paritytech/polkadot-…
sandreim Apr 24, 2025
83657ea
fix it
sandreim Apr 24, 2025
42c2893
add fetched until backed latency.
sandreim Apr 24, 2025
fe1592e
fmt
sandreim Apr 24, 2025
2e5a9e6
Merge branch 'master' of github.com:paritytech/polkadot-sdk into coll…
sandreim Apr 24, 2025
b9fcfc1
Merge branch 'master' into collation_to_backed
sandreim Apr 28, 2025
03e04e1
fix metric and reduce get_block_number calls
sandreim Apr 28, 2025
9f8f5d3
Merge branch 'collation_to_backed' of github.com:paritytech/polkadot-…
sandreim Apr 28, 2025
e839d93
fix build and tests
sandreim Apr 28, 2025
31890eb
saturating sub
sandreim Apr 28, 2025
a696ecd
refactor
sandreim Apr 28, 2025
eecaa14
fixes
sandreim Apr 30, 2025
1f0fda2
debug heads
sandreim Apr 30, 2025
5199ded
fmt
sandreim Apr 30, 2025
92eedf5
Merge branch 'master' into collation_to_backed
sandreim May 21, 2025
120bc4b
review feedback
sandreim May 21, 2025
c77ebe5
Update from github-actions[bot] running command 'prdoc --audience nod…
github-actions[bot] May 21, 2025
faadc07
update prdoc
sandreim May 21, 2025
94828f9
rename
sandreim May 21, 2025
d8cd148
prdoc
sandreim May 21, 2025
5153aea
fix
sandreim May 22, 2025
d4aee94
Merge branch 'master' into collation_to_backed
sandreim May 22, 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
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use polkadot_primitives::{
};

/// The status of a collation as seen from the collator.
#[derive(Clone, Debug, PartialEq)]
pub enum CollationStatus {
/// The collation was created, but we did not advertise it to any validator.
Created,
Expand All @@ -54,6 +55,15 @@ impl CollationStatus {
pub fn advance_to_requested(&mut self) {
*self = Self::Requested;
}

/// Return label for metrics.
pub fn label(&self) -> &'static str {
match self {
CollationStatus::Created => "created",
CollationStatus::Advertised => "advertised",
CollationStatus::Requested => "requested",
}
}
}

/// A collation built by the collator.
Expand Down
Loading
Loading