mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-03 07:47:05 +00:00
Refactor candidate validation messages (#2219)
This commit is contained in:
1 parent
1bc0885829
commit
50390950d8
14 files changed
+384
-354
No files matched your search
@@ -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