-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Currently, the weights are hardcoded for each chain because the MinerConfig trait
from substrate is required to be implemented.
Instead ideally it would be useful if we could just get the weights via runtime RPC API.
Perhaps something like:
fn weight_from_extrinsic(uxt: UnsignedExtrinsic) -> Weight
Then just plug add the Weight
as a parameter to the call to mine_solution_with_snapshot.
Which in turn requires changes in EPM pallet to remove solution_weight
from the Miner trait.
That pretty much would make it work.
paritytech/substrate#11665 might help with this.
/cc @kianenigma