Update chain/types/blockheader.go

Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Steven Li 2019-10-31 16:44:26 +08:00 committed by GitHub
parent 0aa56ba665
commit 85854578d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ func PowerCmp(eproof ElectionProof, mpow, totpow BigInt) bool {
rhs = rhs.Mul(rhs, blocksPerEpoch.Int)
// return true if lhs is less than or equal to rhs
return lhs.Cmp(rhs) < 1
return lhs.Cmp(rhs) <= 0
}
func (t *Ticket) Equals(ot *Ticket) bool {