Replies: 1 comment
-
Proposed SolutionsSolution 1: Fiber Node Queries Watchtower ActorRecommended Approach: Fiber node periodically queries the watchtower actor (locally or via RPC) to check whether TLCs are settled on-chain. Pros:
Cons:
Implementation Details:
Solution 2: Always Start Core WatchtowerApproach: Always start a lightweight "core watchtower" component within Fiber node to monitor settled TLCs, even when a standalone watchtower service is also running. Architecture: Pros:
Cons:
Solution 3: Watchtower Pushes Status to Fiber NodeApproach: Watchtower actively pushes TLC settlement status (including preimages) back to Fiber node when discoveries are made. Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
When Watchtower settles TLCs:
Current Architecture
Components
Fiber Node Store: Main database storing payment sessions, preimages, and payment status
StoreChangeevents when preimages are insertedCchFiberStoreWatchersubscribes to these eventsWatchtower Store: Separate database for watchtower-specific data
update_tlc_settled) and preimages (insert_watch_preimage())Watchtower Actor: Monitors channels and settles TLCs on-chain
find_preimages()which stores TLC statuses and preimages in watchtower storeCCH Component: Manages cross-chain orders
StoreChange::PutPreimageevents from Fiber storeQuick Workaround
A temporary workaround exists where CCH can also watch watchtower preimage store events. However, this requires:
Beta Was this translation helpful? Give feedback.
All reactions