Use cached session index to obtain executor params (#1190)

* Import changes from archieved repo

* Revert erroneous changes

* Fix more tests

* Resolve discussions

* Fix MORE tests

* approval-voting: launch_approval better interface (#1355)

---------

Co-authored-by: Javier Viola <javier@parity.io>
Co-authored-by: ordian <noreply@reusable.software>
Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
s0me0ne-unkn0wn
2023-09-01 20:07:32 +02:00
committed by GitHub
parent ccdf636c49
commit a2b6470607
29 changed files with 819 additions and 331 deletions
@@ -38,6 +38,10 @@ pub enum Error {
/// We tried fetching a session info which was not available.
#[error("There was no session with the given index {0}")]
NoSuchSession(SessionIndex),
/// We tried fetching executor params for a session which were not available.
#[error("There was no executor parameters for session with the given index {0}")]
NoExecutorParams(SessionIndex),
}
pub type Result<T> = std::result::Result<T, Error>;