mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 12:35:43 +00:00
Refactor candidate validation messages (#2219)
This commit is contained in:
@@ -551,8 +551,8 @@ async fn request_pov(
|
||||
|
||||
async fn request_candidate_validation(
|
||||
sender: &mut impl overseer::CandidateBackingSenderTrait,
|
||||
pvd: PersistedValidationData,
|
||||
code: ValidationCode,
|
||||
validation_data: PersistedValidationData,
|
||||
validation_code: ValidationCode,
|
||||
candidate_receipt: CandidateReceipt,
|
||||
pov: Arc<PoV>,
|
||||
executor_params: ExecutorParams,
|
||||
@@ -560,15 +560,15 @@ async fn request_candidate_validation(
|
||||
let (tx, rx) = oneshot::channel();
|
||||
|
||||
sender
|
||||
.send_message(CandidateValidationMessage::ValidateFromExhaustive(
|
||||
pvd,
|
||||
code,
|
||||
.send_message(CandidateValidationMessage::ValidateFromExhaustive {
|
||||
validation_data,
|
||||
validation_code,
|
||||
candidate_receipt,
|
||||
pov,
|
||||
executor_params,
|
||||
PvfExecTimeoutKind::Backing,
|
||||
tx,
|
||||
))
|
||||
exec_timeout_kind: PvfExecTimeoutKind::Backing,
|
||||
response_sender: tx,
|
||||
})
|
||||
.await;
|
||||
|
||||
match rx.await {
|
||||
|
||||
Reference in New Issue
Block a user