Skip to content

add watchtower querier trait#1153

Open
doitian wants to merge 3 commits intonervosnetwork:developfrom
doitian:add-watchtower-querier-trait
Open

add watchtower querier trait#1153
doitian wants to merge 3 commits intonervosnetwork:developfrom
doitian:add-watchtower-querier-trait

Conversation

@doitian
Copy link
Member

@doitian doitian commented Feb 28, 2026

feat: implement watchtower querier trait and integrate with network actor

Allow network/channel actor to query tlc status from watchtower no matter it is in the same process or runs as a standalone service.

Refs #1077

@doitian doitian force-pushed the add-watchtower-querier-trait branch from fc28803 to 01cae25 Compare February 28, 2026 08:58
@doitian doitian marked this pull request as draft March 2, 2026 04:41
@doitian doitian marked this pull request as ready for review March 2, 2026 08:18
@doitian doitian force-pushed the add-watchtower-querier-trait branch from 0f4d9b6 to 5af3805 Compare March 2, 2026 09:16
@doitian doitian requested a review from jjyr March 3, 2026 03:33
doitian added 3 commits March 5, 2026 13:17
…ctor

Allow network/channel actor to query tlc status from watchtower no matter it is in the same process or runs as a standalone service.
- Add WatchtowerQueryActor to run query_tlc_status without blocking Network Actor
- Queue QueryPreimage and QuerySettled jobs from CheckChannels; handle results
  via WatchtowerPreimageResult and WatchtowerSettledResult commands
- Pass tlc_id through preimage flow so result handler can send RemoveTlc
  when preimage is found; only send if channel still has that received TLC

Made-with: Cursor
@doitian doitian force-pushed the add-watchtower-querier-trait branch from 5af3805 to a775dab Compare March 5, 2026 05:26
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