validation-code.md 356 Bytes
Newer Older
1
2
3
4
5
6
7
# Validation Code

Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.

```rust
fn validation_code(at: Block, ParaId, OccupiedCoreAssumption) -> Option<ValidationCode>;
```
8
9
10
11
12
13

Fetch the validation code (past, present or future) by its hash.

```rust
fn validation_code_by_hash(at: Block, Hash) -> Option<ValidationCode>;
```