mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
use absolute
This commit is contained in:
parent
ab2484206d
commit
ebc7474946
@ -6,6 +6,7 @@ import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"math"
|
||||
"math/big"
|
||||
"math/bits"
|
||||
"net"
|
||||
@ -620,7 +621,7 @@ func (b *BlossomSub) refreshScores() {
|
||||
}
|
||||
|
||||
pstats.score *= AppDecay
|
||||
if pstats.score < .1 {
|
||||
if math.Abs(pstats.score) < .1 {
|
||||
pstats.score = 0
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user