pallet epm: add TrimmingStatus to the mined solution (#1659)

For tools such that is using the `Miner` it's useful to know whether a
solution was trimmed or not and also how much that was trimmed.

---------

Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
This commit is contained in:
Niklas AdolfssonandAlexandru Vasile authored and GitHub committed 2023-09-22 19:22:18 +02:00
1 parent 22d9e2abc6
commit f79fa6c8bd
4 files changed
+73 -36

No files matched your search

@@ -1348,7 +1348,7 @@ mod tests {
roll_to_signed();
assert!(MultiPhase::current_phase().is_signed());
let (raw, witness) = MultiPhase::mine_solution().unwrap();
let (raw, witness, _) = MultiPhase::mine_solution().unwrap();
let solution_weight = <Runtime as MinerConfig>::solution_weight(
witness.voters,
witness.targets,