From 5aa7bf612394a4631bdbdf6313ad2ed921fef2da Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Tue, 3 Dec 2019 13:57:17 -0800 Subject: [PATCH] there is no real correlation between challenge count and len(winners) --- lib/sectorbuilder/simple.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/sectorbuilder/simple.go b/lib/sectorbuilder/simple.go index f20395ddd..0c9231092 100644 --- a/lib/sectorbuilder/simple.go +++ b/lib/sectorbuilder/simple.go @@ -46,11 +46,6 @@ func VerifyFallbackPost(ctx context.Context, sectorSize uint64, sectorInfo Sorte } func verifyPost(ctx context.Context, sectorSize uint64, sectorInfo SortedPublicSectorInfo, challengeCount uint64, challengeSeed []byte, proof []byte, candidates []EPostCandidate, proverID address.Address) (bool, error) { - if challengeCount != uint64(len(candidates)) { - log.Warnf("verifyPost with wrong candidate count: expected %d, got %d", challengeCount, len(candidates)) - return false, nil // user input, dont't error - } - var challengeSeeda [CommLen]byte copy(challengeSeeda[:], challengeSeed)