Fix slashing / power recovery issues

This commit is contained in:
Łukasz Magiera
2019-11-29 21:18:34 +01:00
parent adf71f502c
commit 703bc7e774
9 changed files with 58 additions and 33 deletions
+15 -3
View File
@@ -5,10 +5,22 @@ package build
import "os"
// Seconds
const BlockDelay = 4
const BlockDelay = 6
// Blocks
const ProvingPeriodDuration uint64 = 40
// FallbackPoStDelay is the number of epochs the miner needs to wait after
// ElectionPeriodStart before starting fallback post computation
//
// Epochs
const FallbackPoStDelay = 10
// SlashablePowerDelay is the number of epochs after ElectionPeriodStart, after
// which the miner is slashed
//
// Epochs
const SlashablePowerDelay = 20
// Epochs
const InteractivePoRepDelay = 2
func init() {
os.Setenv("TRUST_PARAMS", "1")