lnd.xprv/lnwallet
Olaoluwa Osuntokun cc63db0aee
lnwallet: add detection+handling of contract breaches in channel
This commit adds detection of contract breaches within the commitment
state-machine for a channel. A contract breach is defined as the event
wherein a channel counter-party broadcasts a previously revoked
commitment transaction. Such an event immediately closes a channel as
the funds are now in a state of dispute.

Once a breach is detected, a snapshot of the breached state is
retrieved from the database’s revocation log. This snapshot is then
used to generate the revocation leaf used within this particular state
along with all the other information ncessary to sweep ALL active funds
within the channel. This information is encapsulated within the
BreachRetribution struct which is sent over a new channel dedicated to
sending/receiving BreachRetributions.
2016-11-21 00:54:45 -06:00
..
btcwallet lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
channel_test.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
channel.go lnwallet: add detection+handling of contract breaches in channel 2016-11-21 00:54:45 -06:00
config.go config: add --pendingchannel lnd flag 2016-10-22 02:11:18 +03:00
interface_test.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
interface.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00
log.go lnwallet: switch name of package logger to avoid module collision 2016-07-27 11:29:07 -07:00
reservation.go lnwallet: integrate obfuscated state hints into funding workflow 2016-11-16 12:54:39 -08:00
script_utils_test.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
script_utils.go lnwallet: convert CommitSpendRevoke+CommitSpendNoDelay to use Signer 2016-11-18 15:23:50 -08:00
wallet.go lnwallet: extend the SignDescriptor to include a PrivateTweak 2016-11-18 17:12:58 -08:00