Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Sep 23, 2024
1 parent a430a3e commit 42aaa84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions dot/parachain/candidate-validation/candidate_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func (cv *CandidateValidation) validateFromChainState(msg ValidateFromChainState
CandidateReceipt: &msg.CandidateReceipt,
PoV: msg.Pov,
ExecutorParams: msg.ExecutorParams,
PvfExecTimeoutKind: msg.ExecKind,
}

result, err := cv.pvfHost.validate(validationTask)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (

func createTestCandidateReceiptAndValidationCodeWParaId(t *testing.T, id uint32) (
parachaintypes.CandidateReceipt, parachaintypes.ValidationCode) {
t.Helper()
// this wasm was achieved by building polkadot's adder test parachain
runtimeFilePath := "./testdata/test_parachain_adder.wasm"
validationCodeBytes, err := os.ReadFile(runtimeFilePath)
Expand Down
2 changes: 0 additions & 2 deletions dot/parachain/candidate-validation/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ func determineTimeout(timeoutKind parachaintypes.PvfExecTimeoutKind) time.Durati
return 2 * time.Second
}
switch value.(type) {
case parachaintypes.Backing:
return 2 * time.Second
case parachaintypes.Approval:
return 12 * time.Second
default:
Expand Down

0 comments on commit 42aaa84

Please sign in to comment.