Skip to content

Commit a739741

Browse files
qdm12timwu20
andauthored
Update lib/grandpa/message_tracker.go
Co-authored-by: Timothy Wu <[email protected]>
1 parent c6ccd6a commit a739741

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/grandpa/message_tracker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ func (t *tracker) handleBlock(b *types.Block) {
113113
}
114114
}
115115

116-
t.votes.delete(h)
116+
// may or may not have hash, but delete nevertheless
117+
_ = t.votes.delete(h)
117118

118119
if cm, has := t.commitMessages[h]; has {
119120
_, err := t.handler.handleMessage("", cm)

0 commit comments

Comments
 (0)