lnd/lnwallet
Olaoluwa Osuntokun 64cf872846
lnwallet: fix bugs in ResolutionReq for breach handling
In this commit, we fix three existing bugs in the way we make
`ResolutionReq` for breach handling:

  1. We were passing in the commit blob of the *current* channel state,
     instead of the one stored in the revocation log for this breached
     state.

  2. We were using theirDelay for CsvDelay, when we want ourDelay, which
     in this case will be 1 CSV, as this is a non delayed output.

  3. We also need to pass in the delay for the remote party's to_local
     delayed output.
2024-06-25 10:53:23 +02:00
..
2024-04-25 11:22:43 +02:00

lnwallet

Build Status MIT licensed GoDoc

The lnwallet package implements an abstracted wallet controller that is able to drive channel funding workflows, a number of script utilities, witness generation functions for the various Lightning scripts, revocation key derivation, and the commitment update state machine.

The package is used within lnd as the core wallet of the daemon. The wallet itself is composed of several distinct interfaces that decouple the implementation of things like signing and blockchain access. This separation allows new WalletController implementations to be easily dropped into lnd without disrupting the code base. A series of integration tests at the interface level are also in place to ensure conformance of the implementation with the interface.

Installation and Updating

$  go get -u github.com/lightningnetwork/lnd/lnwallet