mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 21:49:49 +00:00
replace HistoricalValidationCode usages with ValidationCodeByHash (#3210)
* replace HistoricalValidationCode usages with ValidationCodeByHash * runtime-api: tabify tests file * update implementers guide
This commit is contained in:
1 parent
c8cf749aab
commit
8c3bc2b2bb
20 files changed
+659
-797
No files matched your search
@@ -1,7 +0,0 @@
|
||||
# Historical Validation Code
|
||||
|
||||
Fetch the historical validation code used by a para for candidates executed in the context of a given block height in the current chain.
|
||||
|
||||
```rust
|
||||
fn historical_validation_code(at: Block, para_id: ParaId, context_height: BlockNumber) -> Option<ValidationCode>;
|
||||
```
|
||||
@@ -5,3 +5,9 @@ Fetch the validation code used by a para, making the given `OccupiedCoreAssumpti
|
||||
```rust
|
||||
fn validation_code(at: Block, ParaId, OccupiedCoreAssumption) -> Option<ValidationCode>;
|
||||
```
|
||||
|
||||
Fetch the validation code (past, present or future) by its hash.
|
||||
|
||||
```rust
|
||||
fn validation_code_by_hash(at: Block, Hash) -> Option<ValidationCode>;
|
||||
```
|
||||
Reference in new issue
Block a user