Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EpochSolution Inspection RuntimeApi and RPC Method #748

Closed
Tracked by #747
mustermeiszer opened this issue Apr 1, 2022 · 0 comments · Fixed by #796
Closed
Tracked by #747

EpochSolution Inspection RuntimeApi and RPC Method #748

mustermeiszer opened this issue Apr 1, 2022 · 0 comments · Fixed by #796
Assignees
Labels
crcl-runtime Circle runtime related. I8-enhancement An additional feature. P2-nice-to-have Issue is worth doing.

Comments

@mustermeiszer
Copy link
Collaborator

mustermeiszer commented Apr 1, 2022

The api should provide the possibilities to call a node whether a solution is valid for given pool and how the respective score of this solution would be.

Implementation Proposal

#[rpc]
pub trait EpochSolutionApi {
	#[rpc(name = "pools_inspectSolution")]
	fn inspect_epoch_solution(&self, id: T::PoolId, solution: Vec<TrancheSolution>) -> Result<EpochSolution<Balance>>;
}

decl_runtime_apis! {
    pub trait EpochSolutionApi {
	 fn inspect_epoch_solution(id: Hash) -> Option<EpochSolution<Balance>>;
    }
}
@mustermeiszer mustermeiszer added crcl-runtime Circle runtime related. P2-nice-to-have Issue is worth doing. I8-enhancement An additional feature. labels Apr 1, 2022
@branan branan self-assigned this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crcl-runtime Circle runtime related. I8-enhancement An additional feature. P2-nice-to-have Issue is worth doing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants