Ease parachain candidate code fetching (#2593)
* code stored in para + modify CandidateDescriptor.
* WIP: digest + some more impl
* validation_code_hash in payload + check in inclusion
* check in client + refator
* tests
* fix encoding indices
* remove old todos
* fix test
* fix test
* add test
* fetch validation code inside collation-generation from the relay-chain
* HashMismatch -> PoVHashMismatch + miscompilation
* refactor, store hash when needed
* storage rename: more specific but slightly too verbose
* do not hash on candidate validation, fetch hash instead
* better test
* fix test
* guide updates
* don't panic in runtime
Co-authored-by:
Robert Habermeier <rphmeier@gmail.com>
parent
98082c53
Showing
- polkadot/node/collation-generation/src/lib.rs 44 additions, 3 deletionspolkadot/node/collation-generation/src/lib.rs
- polkadot/node/core/candidate-validation/src/lib.rs 85 additions, 11 deletionspolkadot/node/core/candidate-validation/src/lib.rs
- polkadot/node/core/runtime-api/src/lib.rs 7 additions, 0 deletionspolkadot/node/core/runtime-api/src/lib.rs
- polkadot/node/primitives/src/lib.rs 3 additions, 1 deletionpolkadot/node/primitives/src/lib.rs
- polkadot/parachain/src/primitives.rs 8 additions, 1 deletionpolkadot/parachain/src/primitives.rs
- polkadot/primitives/src/v1.rs 14 additions, 2 deletionspolkadot/primitives/src/v1.rs
- polkadot/roadmap/implementers-guide/src/runtime/paras.md 14 additions, 12 deletionspolkadot/roadmap/implementers-guide/src/runtime/paras.md
- polkadot/runtime/kusama/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/parachains/src/inclusion.rs 51 additions, 0 deletionspolkadot/runtime/parachains/src/inclusion.rs
- polkadot/runtime/parachains/src/paras.rs 241 additions, 71 deletionspolkadot/runtime/parachains/src/paras.rs
- polkadot/runtime/parachains/src/runtime_api_impl/v1.rs 8 additions, 1 deletionpolkadot/runtime/parachains/src/runtime_api_impl/v1.rs
- polkadot/runtime/polkadot/src/lib.rs 3 additions, 0 deletionspolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/test-runtime/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/test-runtime/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 4 additions, 0 deletionspolkadot/runtime/westend/src/lib.rs
Please register or sign in to comment