Skip to content

refactor: graph monitor & some handles#383

Merged
eigmax merged 2 commits intoGOATNetwork:devfrom
KSlashh:refactor/graph-monitor
Feb 10, 2026
Merged

refactor: graph monitor & some handles#383
eigmax merged 2 commits intoGOATNetwork:devfrom
KSlashh:refactor/graph-monitor

Conversation

@KSlashh
Copy link
Collaborator

@KSlashh KSlashh commented Feb 10, 2026

No description provided.

pub require_disproved_indexes: Vec<usize>,
pub commit_blockhash_status: CommitBlockHashStatus,
pub is_challenge_timeout_sent: bool,
pub is_challenge_timeout_sent: bool, // deprecated
Copy link
Contributor

Choose a reason for hiding this comment

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

remove it?

@@ -296,25 +305,27 @@ impl WTInitTxVoutMonitorData {
.filter(|(_, v)| {
**v == WatchtowerChallengeItemStatus::Challenge
Copy link
Contributor

@eigmax eigmax Feb 10, 2026

Choose a reason for hiding this comment

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

use matches!.

|| self.commit_blockhash_status == CommitBlockHashStatus::OperatorCommitTimeout
}

pub fn check_watchtower_challenge_normal_finished(&self) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

check_watchtower_challenge_normal_finished => check_watchtower_challenge_finished

return Ok(true);
}
if vout_monitor_data.is_disproved() {
let challenge_start_txid = graph.challenge_txid.clone().map(|v| v.into());
Copy link
Contributor

Choose a reason for hiding this comment

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

it needs .collect to get the result.

false,
graph.graph_id,
None,
"self".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we change this to a global variable or an enum variable?

@eigmax eigmax merged commit 9c64d85 into GOATNetwork:dev Feb 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants