mirror of https://github.com/poanetwork/gecko.git
Merge pull request #98 from ava-labs/consensus-error-handling
report error returned by the snowstorm RecordPoll
This commit is contained in:
commit
328aa57a11
|
@ -141,7 +141,9 @@ func (ta *Topological) RecordPoll(responses ids.UniqueBag) error {
|
|||
votes := ta.pushVotes(kahns, leaves)
|
||||
// Update the conflict graph: O(|Transactions|)
|
||||
ta.ctx.Log.Verbo("Updating consumer confidences based on:\n%s", &votes)
|
||||
ta.cg.RecordPoll(votes)
|
||||
if err := ta.cg.RecordPoll(votes); err != nil {
|
||||
return err
|
||||
}
|
||||
// Update the dag: O(|Live Set|)
|
||||
return ta.updateFrontiers()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue