Add greeter and intents to routing algorithm #585
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
parasitepool/para!585
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "greeter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add greeter to stratifierto Add greeter to routerLGTM
@ -282,6 +282,23 @@ impl Client {}}pub async fn suggest_difficulty(&self, difficulty: Difficulty) -> Result<(Duration, usize)> {I only know for certain that allowing suggest difficulty is safe in two of the three cases:
@ -358,0 +425,4 @@self.has_connected_upstream()&& !self.is_fulfilled()&& self.supplied(now, intents_expected)< bucket.target.target_hashrate() * SEVERE_STARVATIONThis heuristic is good and a significant improvement. Technically, starvation is a sliding scale instead of a locked scalar. For instance, a bucket being marked severe should have more flexibility early in it's order period and when available hashrate exceeds demand. That is hard to cleanly encode though so this is probably the correct 80:20 solution.
Add greeter to routerto Add greeter and intents to routing algorithm