From 77ae9f560eb8caeae81fe1ded21e490184e41cb4 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 4 May 2017 15:36:05 -0700 Subject: [PATCH] lnwallet: update DeleteState method to latest DB API change --- lnwallet/channel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index c5d40a37..35c11c02 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -2550,8 +2550,8 @@ func (lc *LightningChannel) CompleteCooperativeClose(remoteSig []byte) (*wire.Ms // DeleteState deletes all state concerning the channel from the underlying // database, only leaving a small summary describing metadata of the // channel's lifetime. -func (lc *LightningChannel) DeleteState() error { - return lc.channelState.CloseChannel() +func (lc *LightningChannel) DeleteState(c *channeldb.ChannelCloseSummary) error { + return lc.channelState.CloseChannel(c) } // StateSnapshot returns a snapshot of the current fully committed state within