mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 12:11:02 +00:00
remove retry from backers on failed candidate validation (#2182)
Hey guys, as discussed I've changed the name to a more general one `PvfExecKind`, is this good or too general? Creating this as a draft, I still have to fix the tests. Closes #1585 Kusama address: FkB6QEo8VnV3oifugNj5NeVG3Mvq1zFbrUu4P5YwRoe5mQN --------- Co-authored-by: command-bot <> Co-authored-by: Marcin S <marcin@realemail.net>
This commit is contained in:
@@ -1781,30 +1781,22 @@ impl<T: Encode> WellKnownKey<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Type discriminator for PVF preparation timeouts
|
||||
/// Type discriminator for PVF preparation.
|
||||
#[derive(Encode, Decode, TypeInfo, Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum PvfPrepTimeoutKind {
|
||||
/// For prechecking requests, the time period after which the preparation worker is considered
|
||||
/// unresponsive and will be killed.
|
||||
pub enum PvfPrepKind {
|
||||
/// For prechecking requests.
|
||||
Precheck,
|
||||
|
||||
/// For execution and heads-up requests, the time period after which the preparation worker is
|
||||
/// considered unresponsive and will be killed. More lenient than the timeout for prechecking
|
||||
/// to prevent honest validators from timing out on valid PVFs.
|
||||
Lenient,
|
||||
/// For execution and heads-up requests.
|
||||
Prepare,
|
||||
}
|
||||
|
||||
/// Type discriminator for PVF execution timeouts
|
||||
/// Type discriminator for PVF execution.
|
||||
#[derive(Encode, Decode, TypeInfo, Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum PvfExecTimeoutKind {
|
||||
/// The amount of time to spend on execution during backing.
|
||||
pub enum PvfExecKind {
|
||||
/// For backing requests.
|
||||
Backing,
|
||||
|
||||
/// The amount of time to spend on execution during approval or disputes.
|
||||
///
|
||||
/// This should be much longer than the backing execution timeout to ensure that in the
|
||||
/// absence of extremely large disparities between hardware, blocks that pass backing are
|
||||
/// considered executable by approval checkers or dispute participants.
|
||||
/// For approval and dispute request.
|
||||
Approval,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user