mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
204ca6cb0f
In this commit a new enum, CommitmentType, is introduced and initially there are 3 CommitmentTypes: Legacy, LegacyTweakless and Anchor. Then, various methods are added to `CommitmentType`. This allows us to remove a bunch of "if-else" chains from the `wtclient` and `lookout` code. This will also make things easier to extend when a new commitment type (like Taproot) is added. |
||
---|---|---|
.. | ||
interface.go | ||
justice_descriptor_test.go | ||
justice_descriptor.go | ||
log.go | ||
lookout_test.go | ||
lookout.go | ||
mock.go | ||
punisher.go |