Skip to content

Commit

Permalink
Merge branch 'ps-1' of github.com:FactomProject/factomd into ps-1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSnow committed Dec 6, 2016
2 parents 75e0bb5 + c02dce3 commit 0daced5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion state/fault.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package state
import (
"encoding/binary"
"fmt"
"math/rand"
"time"

"github.com/FactomProject/factomd/common/interfaces"
Expand Down Expand Up @@ -374,7 +375,8 @@ func CraftFault(pl *ProcessList, vmIndex int, height int) {
auditServerList := pl.State.GetOnlineAuditServers(pl.DBHeight)
if len(auditServerList) > 0 {
// Nominate the top candidate from the list of Online Audit Servers
replacementServer := auditServerList[0]
audIdx := rand.Int() % len(auditServerList)
replacementServer := auditServerList[audIdx]
leaderMin := pl.State.CurrentMinute

faultedFed := pl.ServerMap[leaderMin][vmIndex]
Expand Down

0 comments on commit 0daced5

Please sign in to comment.