Niklas Adolfsson
4649e767d8
staking miner: Check the queue one last time before submission ( #4819 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* feat: add `ensure_no_better_solution` function
* storage access for submissions and indices
* check ensure_no_previous_solution before remote ext
* fix todos
* grumbles: Perbill::from_percent
* hacky fix
* use modified EPM pallet and various fixes
* diener update --substrate --branch na-epm-pub
* Revert "diener update --substrate --branch na-epm-pub"
This reverts commit b3b9a58c9313372c8f21cf247ba0c8528d9953c0.
* update substrate
* tokio spawn on concurrent stuff
* cleanup
* Update utils/staking-miner/src/monitor.rs
* Update utils/staking-miner/src/monitor.rs
* more cleanup
* fix nits
* address grumbles
* only run batch reqs when signed phase
* better help menu for submission strategy CLI
* add tests for submission strategy
2022-03-04 09:34:02 +00:00
Niklas Adolfsson
8ea9b676a9
companion for #10945 ( #5012 )
...
* companion for #10945
* fix build
* fix bad merge
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-03 23:26:05 +00:00
Niklas Adolfsson
4210d014ec
staking miner: reuse ws conn for remote-ext ( #4849 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* fix grumbles
* Update utils/staking-miner/src/monitor.rs
* staking miner: reuse ws conn for remote-ext
* Revert "revert polkadot runtime changes"
This reverts commit 5fddbbec40702c122b079526915cabac8facdbc1.
* cargo fmt
* revert unintentional change
* revert unintentional change
* add type SharedRpcClient
* cargo fmt
* fix nits
* spelling
* use tracing_subcriber and cleanup
* remove some needless clones
* fix some nits
* fix spellcheck
2022-02-18 11:41:56 +00:00
Niklas Adolfsson
188840dca1
staking miner: spawn separate task for each block ( #4716 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* fix grumbles
* Update utils/staking-miner/src/monitor.rs
* grumbles: fix logs + nits
2022-02-07 11:21:56 +01:00
David
62146d849d
Companion – Update jsonrpsee to 0.4.1 ( #4256 )
...
* Update staking-miner
* fmt
* lockfile
* Point to substrate companion branch
* Revert "Point to substrate companion branch"
This reverts commit 3f8afc5d3137614776f54c7dac3c9077268c5fe5.
* Revert 3f8afc5d3137614776f54c7dac3c9077268c5fe5
* Remove `params` macro in favour of `rpc_macro` from jsonrpsee
* update Cargo.lock
* remove unused import
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-11-11 13:00:58 +00:00
Niklas Adolfsson
b5583c26b6
fix(staking miner): use StorageKey in getStorage ( #4231 )
...
Use `StorageKey` in the rpc call `getStorage` instead of `[u8;32]`
2021-11-06 07:16:00 +00:00
Kian Paimani
51b694e05c
fix restart issue of staking miner ( #4073 )
...
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2021-10-14 13:12:01 +01:00
Zeke Mostov
b048be06fe
Allow staking miner to use different election algorithms ( #3752 )
...
* WIP
* Dry run cmd working
* Monitor cmd works
* Configure balance with parameter type
* Comments
* cleannnn
* Add balancing to PhragMMS
* Move OffchainRanomBalancing to common
* DRY mine_unchecked over config.solver
* FMT
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Improve docs for any_runtime_unit!
* Some cleanup
* fmt
* Correct capitilaztion
* Improve version mismatch log
* Revert "Improve version mismatch log"
This reverts commit 57570403f654f1efa4307956cda2de6f0c64f70a.
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Remove Balancing struct and use Balancing Parameter type instead
* update Substrate
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2021-09-09 20:21:54 +00:00
Shawn Tabrizi
07301bd693
Companion for 9619 (Private Events) ( #3712 )
...
* update runtime api
* use storage_prefix
* update read_events_no_consensus
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-26 14:34:45 +00:00
Kian Paimani
961b9621ec
check runtime version in staking miner ( #3628 )
...
* check runtime version in staking miner
* fmt
* add short alias for things
* fix fee
* print length as well
* fix build
* review comments
2021-08-16 15:49:03 +00:00
Shawn Tabrizi
ff5d56fb76
cargo +nightly fmt ( #3540 )
...
* cargo +nightly fmt
* add cargo-fmt check to ci
* update ci
* fmt
* fmt
* skip macro
* ignore bridges
2021-08-02 10:47:33 +00:00
Zeke Mostov
ed9208b749
Upgrade staking-miner to use jsonrpsee v0.3 ( #3466 )
2021-07-14 17:30:46 +00:00
Kian Paimani
7948eae54b
Small tweaks to staking miner ( #3460 )
...
* Fix miner
* fix miner
* Update utils/staking-miner/src/monitor.rs
* Fix width
2021-07-13 02:02:25 +00:00
Seun Lanlege
de445adb6d
Seun txpool refactor ( #3419 )
...
* companion for paritytech/substrate#9228
* sc_transaction_pool_api
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-08 14:09:54 +00:00
Kian Paimani
505145efd3
Staking Miner ( #3141 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-07-01 20:22:35 +01:00