-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(trimming): implement pre-trimming (#687)
* refactor(trimming): implement pre-trimming This commit refactors trimming such that the staking-miner is responsible to ensure that trimming doesn't have to be done be on-chain. Instead the staking-miner iteratively removes the votes by one voter at the time and re-computes the solution. Once a solution with no trimming is found that solution is submitted to the chain * cargo fmt * cargo fmt * update to polkadot-sdk * cleanup the pre-trimming code * remove checking solution score * update polkadot-sdk * cleaup * Update src/epm.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * add promethous counter for trimming * cargo fmt * fix nits * pre-trimming: impl bsearch to find pre-trim * fix nit in weight trimmming --------- Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
- Loading branch information
Showing
8 changed files
with
1,129 additions
and
393 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.