watchtower/wtclient: parameterize backup task with channel type

This commit is contained in:
Conner Fromknecht
2020-11-25 15:04:12 -08:00
parent 3856acce50
commit dd325f04d2
6 changed files with 46 additions and 28 deletions

View File

@@ -183,7 +183,8 @@ type TowerClient interface {
// abide by the negotiated policy. If the channel we're trying to back
// up doesn't have a tweak for the remote party's output, then
// isTweakless should be true.
BackupState(*lnwire.ChannelID, *lnwallet.BreachRetribution, bool) error
BackupState(*lnwire.ChannelID, *lnwallet.BreachRetribution,
channeldb.ChannelType) error
}
// InterceptableHtlcForwarder is the interface to set the interceptor