mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Runtime API for historical validation code (#1893)
* fix: ensure candidate validation gets code based on occupied core assumption * guide: runtime API for historical validation code * add historical runtime API * integrate into runtime API subsystem * remove blocked TODO * fix service build: enable notifications protocol only under real overseer * Update node/subsystem/src/messages.rs Co-authored-by: Sergei Shulepov <sergei@parity.io> * fix compilation Co-authored-by: Robert Habermeier <robert@Roberts-MacBook-Pro.local> Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
committed by
GitHub
parent
a3e58350bb
commit
1f4121c444
@@ -258,7 +258,7 @@ async fn check_assumption_validation_data(
|
||||
descriptor.relay_parent,
|
||||
RuntimeApiRequest::ValidationCode(
|
||||
descriptor.para_id,
|
||||
OccupiedCoreAssumption::Included,
|
||||
assumption,
|
||||
code_tx,
|
||||
),
|
||||
code_rx,
|
||||
@@ -648,7 +648,7 @@ mod tests {
|
||||
ctx_handle.recv().await,
|
||||
AllMessages::RuntimeApi(RuntimeApiMessage::Request(
|
||||
rp,
|
||||
RuntimeApiRequest::ValidationCode(p, OccupiedCoreAssumption::Included, tx)
|
||||
RuntimeApiRequest::ValidationCode(p, OccupiedCoreAssumption::TimedOut, tx)
|
||||
)) => {
|
||||
assert_eq!(rp, relay_parent);
|
||||
assert_eq!(p, para_id);
|
||||
@@ -756,7 +756,7 @@ mod tests {
|
||||
ctx_handle.recv().await,
|
||||
AllMessages::RuntimeApi(RuntimeApiMessage::Request(
|
||||
rp,
|
||||
RuntimeApiRequest::ValidationCode(p, OccupiedCoreAssumption::Included, tx)
|
||||
RuntimeApiRequest::ValidationCode(p, OccupiedCoreAssumption::TimedOut, tx)
|
||||
)) => {
|
||||
assert_eq!(rp, relay_parent);
|
||||
assert_eq!(p, para_id);
|
||||
|
||||
Reference in New Issue
Block a user