Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

feat: exclude nodes with zero balance from node_groups#573

Merged
JannikSt merged 3 commits into
developfrom
noot/exclude-nodes-by-balance
Jul 8, 2025
Merged

feat: exclude nodes with zero balance from node_groups#573
JannikSt merged 3 commits into
developfrom
noot/exclude-nodes-by-balance

Conversation

@noot
Copy link
Copy Markdown
Contributor

@noot noot commented Jun 23, 2025

  • get and store balance in DiscoveryNode in discovery::chainsync::sync_single_node()
  • in the orchestrator's sync_single_node, handle the case where the node has zero balance by setting status to NodeStatus::LowBalance (todo: is there a non-zero balance we can set this to?)
  • in NodeGroupsPlugin::handle_status_change, dissolve the group if the node has low balance (not sure if this is the intended behaviour)

closes #408

Comment thread crates/discovery/src/chainsync/sync.rs
@noot noot requested a review from JannikSt June 25, 2025 17:36
@noot noot marked this pull request as ready for review July 2, 2025 20:06
@JannikSt JannikSt merged commit a282313 into develop Jul 8, 2025
1 check passed
@JannikSt JannikSt deleted the noot/exclude-nodes-by-balance branch July 8, 2025 13:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude nodes from node_groups that have too little funding

2 participants