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

Fix: pool invite adjustment#265

Merged
JannikSt merged 10 commits into
developfrom
fix/pool-invite-adjustment
Apr 15, 2025
Merged

Fix: pool invite adjustment#265
JannikSt merged 10 commits into
developfrom
fix/pool-invite-adjustment

Conversation

@JannikSt
Copy link
Copy Markdown
Member

Ensure we validate pool invite before checking onchain

@JannikSt JannikSt requested review from Copilot and mattdf and removed request for Copilot April 15, 2025 10:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

worker/src/api/routes/invite.rs:24

  • Consider adding unit tests to cover the invite validation logic, specifically testing both scenarios when compute_pool_id is provided and when it is None.
if let Some(pool_id) = app_state.system_state.compute_pool_id.clone() {

worker/src/cli/command.rs:179

  • [nitpick] The parameter 'compute_pool_id' may be confused with other pool identifiers; consider using a more descriptive name if context permits, or document its purpose clearly.
Some(compute_pool_id.to_string()),

@JannikSt JannikSt requested a review from Copilot April 15, 2025 14:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Comment thread discovery/src/api/routes/get_nodes.rs
@JannikSt JannikSt merged commit 178ebf0 into develop Apr 15, 2025
JannikSt added a commit that referenced this pull request Apr 15, 2025
* Fix: pool invite adjustment (#265)

* only accept pool invites from correct pool id and only if heartbeat is off

* prevent nodes from overwriting data when they are active, filter out node ip addresses for pool when they are active in other pools

* handle double work submission error due to latency (#266)

* Improvement: Discovery heartbeat based on chainsync (#267)

* adjust discovery health based on chainsync
@JannikSt JannikSt deleted the fix/pool-invite-adjustment branch June 25, 2025 13:00
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.

3 participants