From 975198bb5e8c16aeb42c7e99047df13bd3f4439b Mon Sep 17 00:00:00 2001 From: StephenButtolph Date: Fri, 19 Jun 2020 15:13:34 -0400 Subject: [PATCH] report error returned by the snowstorm RecordPoll --- snow/consensus/avalanche/topological.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snow/consensus/avalanche/topological.go b/snow/consensus/avalanche/topological.go index f99cff1..d786a0f 100644 --- a/snow/consensus/avalanche/topological.go +++ b/snow/consensus/avalanche/topological.go @@ -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() }