mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
Make candidate validation timeouts configurable (#4001)
* pvf: make execution timeout configurable * guide: add timeouts to candidate validation params * add timeouts to candidate validation messages * fmt * port backing to use the backing pvf timeout * port approval-voting to use the execution timeout * port dispute participation to use the correct timeout * fmt * address grumbles & test failure
This commit is contained in:
committed by
GitHub
parent
114e757988
commit
6002865874
@@ -112,6 +112,7 @@ where
|
||||
ctx.send_message(CandidateValidationMessage::ValidateFromChainState(
|
||||
Default::default(),
|
||||
PoV { block_data: BlockData(Vec::new()) }.into(),
|
||||
Default::default(),
|
||||
tx,
|
||||
))
|
||||
.await;
|
||||
@@ -791,7 +792,12 @@ where
|
||||
fn test_candidate_validation_msg() -> CandidateValidationMessage {
|
||||
let (sender, _) = oneshot::channel();
|
||||
let pov = Arc::new(PoV { block_data: BlockData(Vec::new()) });
|
||||
CandidateValidationMessage::ValidateFromChainState(Default::default(), pov, sender)
|
||||
CandidateValidationMessage::ValidateFromChainState(
|
||||
Default::default(),
|
||||
pov,
|
||||
Default::default(),
|
||||
sender,
|
||||
)
|
||||
}
|
||||
|
||||
fn test_candidate_backing_msg() -> CandidateBackingMessage {
|
||||
|
||||
Reference in New Issue
Block a user