diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-28 18:38:22 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-01-28 18:38:22 +0800 |
commit | 930cf6c25aeb10cfe01c57ccedd34cff7a157774 (patch) | |
tree | 59076c2de4359d14bb59e1d19d6dfcf69b369224 | |
parent | b875e23660f61f674b89193ac61812699eeaf321 (diff) | |
download | dexon-consensus-930cf6c25aeb10cfe01c57ccedd34cff7a157774.tar.gz dexon-consensus-930cf6c25aeb10cfe01c57ccedd34cff7a157774.tar.zst dexon-consensus-930cf6c25aeb10cfe01c57ccedd34cff7a157774.zip |
Fixup: rollback last fixup
-rw-r--r-- | core/agreement/vote-cache.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/agreement/vote-cache.go b/core/agreement/vote-cache.go index d7e2a80..3a315a3 100644 --- a/core/agreement/vote-cache.go +++ b/core/agreement/vote-cache.go @@ -243,7 +243,7 @@ func (a *voteChainCache) updateReferenceSignal(s *Signal) (updated bool) { panic(fmt.Errorf("backward signal: %s %s", refSignal, s)) } if s.Position.Equal(&refSignal.Position) { - switch refSignal.Type { + switch s.Type { case SignalDecide: // "Decide" is the strongest signal in a position, we shouldn't // overwrite it. |