Skip to content

Commit

Permalink
Fix panic on sending answers (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
ridenaio authored Aug 8, 2019
1 parent cb19c46 commit 8d6e6e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/ceremony/ceremony.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ func (vc *ValidationCeremony) broadcastShortAnswersTx() {
flip, err := vc.flipper.GetRawFlip(key)
if err != nil || flip == nil {
vc.log.Error(fmt.Sprintf("flip is missing, key: %x", key))
} else {
pairs = append(pairs, flip.Pair)
}
pairs = append(pairs, flip.Pair)
}

ipfsAnswer := &attachments.ShortAnswerAttachment{
Expand Down Expand Up @@ -578,7 +579,7 @@ func (vc *ValidationCeremony) ApplyNewEpoch(appState *appstate.AppState) (identi
}
return identitiesCount
}

approvedCandidates := vc.appState.EvidenceMap.CalculateApprovedCandidates(vc.getParticipantsAddrs(), vc.epochDb.ReadEvidenceMaps())
approvedCandidatesSet := mapset.NewSet()
for _, item := range approvedCandidates {
Expand Down

0 comments on commit 8d6e6e8

Please sign in to comment.