From e30f21dc85672f2c4b427a7cbd054df7fcc477ab Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 14 Jan 2020 04:10:20 +0100 Subject: [PATCH] fail sync when channel is abandoned --- manager/setup.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manager/setup.go b/manager/setup.go index aef66d8..3813e7b 100644 --- a/manager/setup.go +++ b/manager/setup.go @@ -303,9 +303,6 @@ func (s *Sync) ensureChannelOwnership() error { return errors.Err("no channel name set") } - if s.transferState == TransferStateComplete { - return nil - } channels, err := s.daemon.ChannelList(nil, 1, 50, nil) if err != nil { return err @@ -332,6 +329,8 @@ func (s *Sync) ensureChannelOwnership() error { if channelToUse == nil { return errors.Err("this wallet has channels but not a single one is ours! Expected claim_id: %s (%s)", s.lbryChannelID, s.LbryChannelName) } + } else if s.transferState == TransferStateComplete { + return errors.Err("the channel was transferred but appears to have been abandoned!") } channelUsesOldMetadata := false