Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e0232a6
WIP
emostov Aug 31, 2021
3bfb3f9
Merge remote-tracking branch 'origin' into zeke-npos-solver-trait-com…
emostov Aug 31, 2021
f735d09
Dry run cmd working
emostov Aug 31, 2021
8935429
Monitor cmd works
emostov Aug 31, 2021
d876c43
Configure balance with parameter type
emostov Aug 31, 2021
a27ef8c
Comments
emostov Aug 31, 2021
2487ad0
cleannnn
emostov Aug 31, 2021
148bcab
Merge branch 'master' of https://github.com/paritytech/polkadot into …
emostov Aug 31, 2021
9f8e64e
Add balancing to PhragMMS
emostov Aug 31, 2021
7bd3494
Move OffchainRanomBalancing to common
emostov Sep 1, 2021
6ff4e40
DRY mine_unchecked over config.solver
emostov Sep 1, 2021
44b9bb3
FMT
emostov Sep 1, 2021
bfe5ef2
Apply suggestions from code review
emostov Sep 1, 2021
6b6e879
Improve docs for any_runtime_unit!
emostov Sep 1, 2021
3ea5d5e
Merge branch 'zeke-npos-solver-trait-companion' of https://github.com…
emostov Sep 1, 2021
8a07f86
Some cleanup
emostov Sep 1, 2021
0590a58
fmt
emostov Sep 1, 2021
4155002
Correct capitilaztion
emostov Sep 1, 2021
55f7993
Merge branch 'master' into zeke-npos-solver-trait-companion
emostov Sep 4, 2021
3e7b833
Merge branch 'master' of https://github.com/paritytech/polkadot into …
emostov Sep 5, 2021
5757040
Improve version mismatch log
emostov Sep 6, 2021
55f13e5
Revert "Improve version mismatch log"
emostov Sep 6, 2021
3f9e959
Merge remote-tracking branch 'origin' into zeke-npos-solver-trait-com…
emostov Sep 7, 2021
af0b729
Merge remote-tracking branch 'origin' into zeke-npos-solver-trait-com…
emostov Sep 8, 2021
c15130c
Apply suggestions from code review
emostov Sep 9, 2021
c68af04
Remove Balancing struct and use Balancing Parameter type instead
emostov Sep 9, 2021
ed66703
Merge remote-tracking branch 'origin/master' into zeke-npos-solver-tr…
Sep 9, 2021
a8e5d05
update Substrate
Sep 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Comments
  • Loading branch information
emostov committed Aug 31, 2021
commit a27ef8cb0910a6aaea99e9c2ee6679971dcf04c4
6 changes: 4 additions & 2 deletions utils/staking-miner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,12 @@ enum Solvers {
}

frame_support::parameter_types! {
// Number of balancing iterations for a solution algorithm. Set based on the [`Solvers`] CLI
// config.
/// Number of balancing iterations for a solution algorithm. Set based on the [`Solvers`] CLI
/// config.
pub static BalanceIterations: u32 = 10;
}

/// Balancing configuration for for the solution algorithm. See [`Solvers`] for config options.
struct Balancing;
impl Get<Option<(usize, u128)>> for Balancing {
fn get() -> Option<(usize, u128)> {
Expand Down