package simulation const ( // Fraction of double-signing evidence from a past height pastEvidenceFraction float64 = 0.5 // Minimum time per block minTimePerBlock int64 = 86400 / 2 // Maximum time per block maxTimePerBlock int64 = 86400 // Number of keys numKeys int = 250 // Chance that double-signing evidence is found on a given block evidenceFraction float64 = 0.01 // TODO Remove in favor of binary search for invariant violation onOperation bool = false ) var ( // Currently there are 3 different liveness types, fully online, spotty connection, offline. initialLivenessWeightings = []int{40, 5, 5} livenessTransitionMatrix, _ = CreateTransitionMatrix([][]int{ {90, 20, 1}, {10, 50, 5}, {0, 10, 1000}, }) )