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 Adolfsson
2023-09-22 19:22:18 +02:00
committed by GitHub
parent 22d9e2abc6
commit f79fa6c8bd
4 changed files with 73 additions and 36 deletions
@@ -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,