-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beat [3/4]: Implement Consumer
on chainWatcher
and resolvers
#8922
base: yy-blockbeat
Are you sure you want to change the base?
Beat [3/4]: Implement Consumer
on chainWatcher
and resolvers
#8922
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9f0b94d - Browse repository at this point
Copy the full SHA 9f0b94dView commit details -
contractcourt: add methods to decide spend path in
htlcSuccessResolver
This commit adds a few helper methods to decide how the htlc output should be spent.
Configuration menu - View commit details
-
Copy full SHA for 354be8c - Browse repository at this point
Copy the full SHA 354be8cView commit details -
contractcourt: add methods to send sweep requests in `htlcSuccessReso…
…lver` This commit is a pure refactor in which moves the sweep handling logic into the new methods.
Configuration menu - View commit details
-
Copy full SHA for 7ba62d5 - Browse repository at this point
Copy the full SHA 7ba62d5View commit details -
contractcourt: add resolver handlers in
htlcSuccessResolver
This commit refactors the `Resolve` method by adding two resolver handlers to handle waiting for spending confirmations.
Configuration menu - View commit details
-
Copy full SHA for 40b65ee - Browse repository at this point
Copy the full SHA 40b65eeView commit details -
contractcourt: add
Launch
method to anchor/breach resolverWe will use this and its following commits to break the original `Resolve` methods into two parts - the first part is moved to a new method `Launch`, which handles sending a sweep request to the sweeper. The second part remains in `Resolve`, which is mainly waiting for a spending tx. Breach resolver currently doesn't do anything in its `Launch` since the sweeping of justice outputs are not handled by the sweeper yet.
Configuration menu - View commit details
-
Copy full SHA for 37991e6 - Browse repository at this point
Copy the full SHA 37991e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fd53b9 - Browse repository at this point
Copy the full SHA 2fd53b9View commit details -
contractcourt: add
Launch
method to htlc success resolverThis commit breaks the `Resolve` into two parts - the first part is moved into a `Launch` method that handles sending sweep requests, and the second part remains in `Resolve` which handles waiting for the spend.
Configuration menu - View commit details
-
Copy full SHA for 5e3ce4c - Browse repository at this point
Copy the full SHA 5e3ce4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f013b2a - Browse repository at this point
Copy the full SHA f013b2aView commit details -
contractcourt: add methods to handle sweep in
htlcTimeoutResolver
This commit adds new methods to handle making sweep requests based on the spending path used by the outgoing htlc output.
Configuration menu - View commit details
-
Copy full SHA for 963986b - Browse repository at this point
Copy the full SHA 963986bView commit details -
contractcourt: add methods to checkpoint states
This commit adds checkpoint methods in `htlcTimeoutResolver`, which are similar to those used in `htlcSuccessResolver`.
Configuration menu - View commit details
-
Copy full SHA for c9f642a - Browse repository at this point
Copy the full SHA c9f642aView commit details -
contractcourt: add methods to resolve different paths
This commit adds more methods to handle resolving the spending of the output based on different spending paths.
Configuration menu - View commit details
-
Copy full SHA for 38233c0 - Browse repository at this point
Copy the full SHA 38233c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d9899e - Browse repository at this point
Copy the full SHA 5d9899eView commit details -
contractcourt: add
Launch
method to incoming contest resolverA minor refactor is done to support implementing `Launch`.
Configuration menu - View commit details
-
Copy full SHA for b3b86f8 - Browse repository at this point
Copy the full SHA b3b86f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 492fceb - Browse repository at this point
Copy the full SHA 492fcebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 622fc87 - Browse repository at this point
Copy the full SHA 622fc87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 742b050 - Browse repository at this point
Copy the full SHA 742b050View commit details -
Configuration menu - View commit details
-
Copy full SHA for c30ab9d - Browse repository at this point
Copy the full SHA c30ab9dView commit details -
chainio: enable spending txns lookup in
Blockbeat
This commit adds two interface methods, `HasOutpointSpent` and `HasOutpointSpentByScript` so the caller can use the current `blockbeat` to decide whether a given outpoint or a pkscript has been spent or not.
Configuration menu - View commit details
-
Copy full SHA for 7f0f144 - Browse repository at this point
Copy the full SHA 7f0f144View commit details -
chainio+contractcourt: handle
blockbeat
inchainWatcher
This commit adds a new method on `Blockbeat` to query the spending tx for a given outpoint and pkScript, thus treating `Blockbeat` as the single source of truth.
Configuration menu - View commit details
-
Copy full SHA for 79f4cd3 - Browse repository at this point
Copy the full SHA 79f4cd3View commit details -
contractcourt: use
ShortChanID
instead ofChannelPoint
in logThis way the log lines are shorten.
Configuration menu - View commit details
-
Copy full SHA for cf7e81b - Browse repository at this point
Copy the full SHA cf7e81bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f9b77fd - Browse repository at this point
Copy the full SHA f9b77fdView commit details -
contractcourt: fix concurrent access to
resolved
This commit makes `resolved` an atomic bool to avoid data race. This field is now defined in `contractResolverKit` to avoid code duplication.
Configuration menu - View commit details
-
Copy full SHA for 868265c - Browse repository at this point
Copy the full SHA 868265cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef95c61 - Browse repository at this point
Copy the full SHA ef95c61View commit details -
multi: add new method
ChainArbitrator.RedispatchBlockbeat
This commit adds a new method to enable us resending the blockbeat in `ChainArbitrator`, which is needed for the channel restore as the chain watcher and channel arbitrator are added after the start of the chain arbitrator.
Configuration menu - View commit details
-
Copy full SHA for 7283893 - Browse repository at this point
Copy the full SHA 7283893View commit details -
contractcourt: make sure output from legacy success tx is swept
This commit fixes an existing issue where the output from a pre-anchor type HTLC success tx is not swept.
Configuration menu - View commit details
-
Copy full SHA for 3561f90 - Browse repository at this point
Copy the full SHA 3561f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cd82ff - Browse repository at this point
Copy the full SHA 2cd82ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 61aa221 - Browse repository at this point
Copy the full SHA 61aa221View commit details -
This commit fixes the multi hop tests to reflect the latest sweeper changes.
Configuration menu - View commit details
-
Copy full SHA for 491796f - Browse repository at this point
Copy the full SHA 491796fView commit details -
itest: fix tests regarding the new sweeper behavior
This commit fix watchtower, channel backup, and route blinding tests re the new sweeper behavior.
Configuration menu - View commit details
-
Copy full SHA for e568154 - Browse repository at this point
Copy the full SHA e568154View commit details