lnwallet: update DeleteState method to latest DB API change
This commit is contained in:
parent
023de3e075
commit
77ae9f560e
@ -2550,8 +2550,8 @@ func (lc *LightningChannel) CompleteCooperativeClose(remoteSig []byte) (*wire.Ms
|
|||||||
// DeleteState deletes all state concerning the channel from the underlying
|
// DeleteState deletes all state concerning the channel from the underlying
|
||||||
// database, only leaving a small summary describing metadata of the
|
// database, only leaving a small summary describing metadata of the
|
||||||
// channel's lifetime.
|
// channel's lifetime.
|
||||||
func (lc *LightningChannel) DeleteState() error {
|
func (lc *LightningChannel) DeleteState(c *channeldb.ChannelCloseSummary) error {
|
||||||
return lc.channelState.CloseChannel()
|
return lc.channelState.CloseChannel(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
// StateSnapshot returns a snapshot of the current fully committed state within
|
// StateSnapshot returns a snapshot of the current fully committed state within
|
||||||
|
Loading…
Reference in New Issue
Block a user