mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
runtime-api: add validation_code_hash API (#4629)
This is the first step to close https://github.com/paritytech/polkadot/issues/4524
This commit is contained in:
@@ -11,3 +11,11 @@ Fetch the validation code (past, present or future) by its hash.
|
||||
```rust
|
||||
fn validation_code_by_hash(at: Block, ValidationCodeHash) -> Option<ValidationCode>;
|
||||
```
|
||||
|
||||
Fetch the validation code hash used by a para, making the given `OccupiedCoreAssumption`.
|
||||
|
||||
> ⚠️ This API was introduced in `ParachainHost` v2.
|
||||
|
||||
```rust
|
||||
fn validation_code_hash(at: Block, ParaId, OccupiedCoreAssumption) -> Option<ValidationCodeHash>;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user