lnd.xprv/contractcourt
Olaoluwa Osuntokun 6d97bcbacd
lnwallet+contractcourt: publicly export DeriveCommitmentKeys use in chain watcher
In this commit, we consolidate the number of areas where we derive our
commitment keys. Before this commit, the `isOurCommitment` function in
the chain watcher used a custom routine to derive the expected
scripts/keys for our commitment at that height. With the recent changes,
we now have additional logic in `DeriveCommitmentKeys` that wasn't
copied over to this area. As a result, the prior logic would erroneously
detect if it was our commitment that had hit the chain or not.

In this commit, we remove the old custom code, and use
`DeriveCommitmentKeys` wihtin the chain watcher as well. This ensures
that we only need to maintain the key derivation code in a single place,
preventing future bugs of this nature.
2019-09-25 18:26:13 -07:00
..
briefcase_test.go routing: Fix dropped errors in tests. 2019-09-13 06:28:05 +00:00
briefcase.go multi: fix dropped errors 2019-09-13 09:50:38 +02:00
chain_arbitrator_test.go multi: update funding workflow to be aware of new tweakless commits 2019-09-25 18:25:46 -07:00
chain_arbitrator.go contractcourt/chain_arbitrator: republish closeTx for open channels 2019-09-25 14:04:43 +02:00
chain_watcher_test.go multi: update funding workflow to be aware of new tweakless commits 2019-09-25 18:25:46 -07:00
chain_watcher.go lnwallet+contractcourt: publicly export DeriveCommitmentKeys use in chain watcher 2019-09-25 18:26:13 -07:00
channel_arbitrator_test.go Merge pull request #3480 from Roasbeef/proper-resolution-supplements 2019-09-25 17:08:35 -07:00
channel_arbitrator.go Merge pull request #3480 from Roasbeef/proper-resolution-supplements 2019-09-25 17:08:35 -07:00
commit_sweep_resolver.go contractcourt: update the commitSweepResolver to be aware of tweakless commits 2019-09-25 18:25:49 -07:00
contract_resolvers.go cnct: do not log resolver shutting down as error 2019-09-11 15:54:41 +02:00
htlc_incoming_contest_resolver.go cnct: do not log resolver shutting down as error 2019-09-11 15:54:41 +02:00
htlc_incoming_resolver_test.go htlcswitch+invoices: circuit key based hodl notifications 2019-09-16 10:10:14 +02:00
htlc_outgoing_contest_resolver.go cnct: do not log resolver shutting down as error 2019-09-11 15:54:41 +02:00
htlc_success_resolver.go cnct: do not log resolver shutting down as error 2019-09-11 15:54:41 +02:00
htlc_timeout_resolver_test.go cnct/test: extend mockWitnessBeacon 2019-05-15 14:42:15 +02:00
htlc_timeout_resolver.go cnct: do not log resolver shutting down as error 2019-09-11 15:54:41 +02:00
interfaces.go multi: use separate cltv expiry field from invoice 2019-09-04 19:20:19 +02:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
mock_registry_test.go multi: use separate cltv expiry field from invoice 2019-09-04 19:20:19 +02:00
utils_test.go cnct/test: add incoming contest resolver test 2019-05-15 14:42:18 +02:00