The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/staking/slash/slasher.go

20 lines
423 B

package slash
import "github.com/harmony-one/harmony/shard"
const (
// UnavailabilityInConsecutiveBlockSigning is how many blocks in a row
// before "slashing by unavailability" occurs
UnavailabilityInConsecutiveBlockSigning = 1380
)
// Slasher ..
type Slasher interface {
ShouldSlash(shard.BlsPublicKey) bool
}
// ThresholdDecider ..
type ThresholdDecider interface {
SlashThresholdMet(shard.BlsPublicKey) bool
}