Router: Buckets, Sinks and Orders #516

Merged
paratoxic merged 31 commits from route-buckets into master 2026-04-15 03:17:40 +00:00
Owner

Closes #509 and #511

Closes #509 and #511
Introduce Scheduler for routing
Some checks failed
CI / ckpool (pull_request) Successful in 8s
CI / lint (pull_request) Failing after 1m6s
CI / test-linux (pull_request) Has been cancelled
89c0311822
paratoxic changed title from Introduce Scheduler for routing to Add scheduler for routing 2026-04-13 17:05:25 +00:00
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 12s
CI / lint (pull_request) Successful in 1m1s
CI / test-linux (pull_request) Successful in 3m32s
fc94d98b81
Tweak
Some checks failed
CI / ckpool (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 1m19s
CI / test-linux (pull_request) Failing after 3m57s
c8b532a220
Relevel
Some checks failed
CI / ckpool (pull_request) Successful in 16s
CI / lint (pull_request) Successful in 1m22s
CI / test-linux (pull_request) Failing after 3m56s
8b67ef6660
Tweak
All checks were successful
CI / ckpool (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 1m11s
CI / test-linux (pull_request) Successful in 3m35s
7ddfcb4ae8
Consolidate
All checks were successful
CI / ckpool (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 1m11s
CI / test-linux (pull_request) Successful in 3m40s
4f2d1a8b7c
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 14s
CI / lint (pull_request) Successful in 1m11s
CI / test-linux (pull_request) Successful in 3m36s
1b31378d75
Tweak
All checks were successful
CI / ckpool (pull_request) Successful in 13s
CI / lint (pull_request) Successful in 1m38s
CI / test-linux (pull_request) Successful in 4m34s
97f3948d01
Solidify
Some checks failed
CI / ckpool (pull_request) Successful in 15s
CI / lint (pull_request) Failing after 1m1s
CI / test-linux (pull_request) Failing after 1m48s
182d0120e5
Solidify
All checks were successful
CI / ckpool (pull_request) Successful in 8s
CI / lint (pull_request) Successful in 58s
CI / test-linux (pull_request) Successful in 3m38s
f8e3dc69df
Change
Some checks failed
CI / ckpool (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 1m16s
CI / test-linux (pull_request) Has been cancelled
ed4cd3d7ad
Solidify
All checks were successful
CI / ckpool (pull_request) Successful in 16s
CI / lint (pull_request) Successful in 1m1s
CI / test-linux (pull_request) Successful in 3m36s
3e5d833e53
Modify
Some checks failed
CI / ckpool (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 1m4s
CI / test-linux (pull_request) Has been cancelled
a792ab2b70
Tweak
Some checks failed
CI / ckpool (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 1m5s
CI / test-linux (pull_request) Has been cancelled
b1718a040a
Improve
Some checks failed
CI / ckpool (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 57s
CI / test-linux (pull_request) Failing after 3m42s
96690aae3a
paratoxic changed title from Add scheduler for routing to Router: Buckets and Sinks 2026-04-14 16:02:22 +00:00
Modify
Some checks failed
CI / ckpool (pull_request) Successful in 6s
CI / lint (pull_request) Successful in 1m1s
CI / test-linux (pull_request) Has been cancelled
5d4600624c
Consolidate
Some checks failed
CI / ckpool (pull_request) Successful in 8s
CI / lint (pull_request) Successful in 1m13s
CI / test-linux (pull_request) Failing after 4m21s
7660c5a012
Change
All checks were successful
CI / ckpool (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 1m9s
CI / test-linux (pull_request) Successful in 3m37s
c4e97c817b
paratoxic changed title from Router: Buckets and Sinks to Router: Buckets, Sinks and Orders 2026-04-14 16:51:19 +00:00
Fix
Some checks failed
CI / ckpool (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 1m13s
CI / test-linux (pull_request) Has been cancelled
a9ce3602c4
Relevel
All checks were successful
CI / ckpool (pull_request) Successful in 12s
CI / lint (pull_request) Successful in 1m7s
CI / test-linux (pull_request) Successful in 3m37s
841f375df7
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 1m5s
CI / test-linux (pull_request) Successful in 3m51s
c89f44a88f
Modify
All checks were successful
CI / ckpool (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 1m13s
CI / test-linux (pull_request) Successful in 4m1s
c512385467
Consolidate
Some checks failed
CI / ckpool (pull_request) Successful in 14s
CI / lint (pull_request) Successful in 1m26s
CI / test-linux (pull_request) Failing after 3m39s
90c78abbad
Update
All checks were successful
CI / ckpool (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 1m19s
CI / test-linux (pull_request) Successful in 3m42s
5f0d8af84d
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 17s
CI / lint (pull_request) Successful in 1m12s
CI / test-linux (pull_request) Successful in 3m30s
728362cf70
Solidify
All checks were successful
CI / ckpool (pull_request) Successful in 7s
CI / lint (pull_request) Successful in 1m10s
CI / test-linux (pull_request) Successful in 3m58s
19f029fb4a
Fix
Some checks failed
CI / ckpool (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 1m6s
CI / test-linux (pull_request) Failing after 4m2s
c53484f02d
Consolidate
All checks were successful
CI / ckpool (pull_request) Successful in 10s
CI / lint (pull_request) Successful in 1m8s
CI / test-linux (pull_request) Successful in 3m33s
f632be0557
Solidify
Some checks failed
CI / ckpool (pull_request) Successful in 8s
CI / lint (pull_request) Successful in 1m4s
CI / test-linux (pull_request) Failing after 4m13s
3430c82f91
Relevel
All checks were successful
CI / ckpool (pull_request) Successful in 13s
CI / lint (pull_request) Successful in 1m7s
CI / test-linux (pull_request) Successful in 3m44s
21aa32a2b0
Improve
All checks were successful
CI / ckpool (pull_request) Successful in 13s
CI / lint (pull_request) Successful in 59s
CI / test-linux (pull_request) Successful in 3m58s
c865e0628b
parabit approved these changes 2026-04-15 00:17:22 +00:00
parabit left a comment
Owner

LGTM

LGTM
@ -22,2 +22,4 @@
TotalWork::from_raw(self.0 * 86_400.0 / HASHES_PER_DIFF_1 as f64)
}
pub fn target_hashrate(self) -> HashRate {
Owner

Good target to always be at least on par to finish an order in a days time, not 100% sure if that logic holds when dealing with fractional PHd or orders that exceed supply, but this is an excellent improvement for now. 👍

Good target to always be at least on par to finish an order in a days time, not 100% sure if that logic holds when dealing with fractional PHd or orders that exceed supply, but this is an excellent improvement for now. 👍
Author
Owner

yeah it scales up and down. I've standardized delivery time to 24h and I make a soft promise to target that hashrate for that amount until target_work reached

yeah it scales up and down. I've standardized delivery time to 24h and I make a soft promise to target that hashrate for that amount until target_work reached
paratoxic marked this conversation as resolved
@ -267,38 +280,34 @@ impl Router {
fn rebalance(&self) {
Owner

Am I reading this right that it is going to spaz out a bit if an order is starving and we lack the hashrate to fully feed all open orders?

Am I reading this right that it is going to spaz out a bit if an order is starving and we lack the hashrate to fully feed all open orders?
Author
Owner

What do you mean by spaz? It should wont be able to point hashrate to that order, nothing else really happens

What do you mean by spaz? It should wont be able to point hashrate to that order, nothing else really happens
paratoxic merged commit 0aa7608f6c into master 2026-04-15 03:17:40 +00:00
paratoxic deleted branch route-buckets 2026-04-15 03:17:40 +00:00
Sign in to join this conversation.
No description provided.