From 2f701a887ad32f8867665e4bbae685932cd095fd Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 25 Sep 2019 04:15:16 +0200 Subject: [PATCH] fix double counting fix transferred check --- manager/ytsync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manager/ytsync.go b/manager/ytsync.go index 723d02c..d26bb59 100644 --- a/manager/ytsync.go +++ b/manager/ytsync.go @@ -546,7 +546,7 @@ func (s *Sync) updateRemoteDB(claims []jsonrpc.Claim) (total, fixed, removed int if !claimInDatabase { log.Debugf("%s: Published but is not in database (%s - %s)", videoID, c.Name, c.ClaimID) } - if s.syncedVideos[videoID].Transferred { + if s.syncedVideos[videoID].Transferred && s.publishAddress != c.Address { log.Debugf("%s: Marked as transferred while in fact it's not (%s - %s). Publish address: %s, expected: %s", videoID, c.Name, c.ClaimID, c.Address, s.publishAddress) } if !claimInDatabase || metadataDiffers || claimIDDiffers || claimNameDiffers || claimMarkedUnpublished { @@ -575,7 +575,6 @@ func (s *Sync) updateRemoteDB(claims []jsonrpc.Claim) (total, fixed, removed int for vID, sv := range s.syncedVideos { if sv.Transferred { log.Infof("%s: claim was transferred, ignoring", vID) - count++ //still count them as publishes continue } _, ok := videoIDMap[vID]