diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-15 13:41:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 13:41:26 +0800 |
commit | a624d79f6bc1b3ca1567c6d16e143aa009f04764 (patch) | |
tree | 5a3e1847e5981313aff0ef9614c877dd734ee159 /core/types/vote.go | |
parent | 52d490fa7e6b108f71ffb8937554141d5c668ff1 (diff) | |
download | dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar.gz dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar.bz2 dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar.lz dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar.xz dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.tar.zst dexon-consensus-a624d79f6bc1b3ca1567c6d16e143aa009f04764.zip |
core: Fix simulation errors. (#202)
Diffstat (limited to 'core/types/vote.go')
-rw-r--r-- | core/types/vote.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/types/vote.go b/core/types/vote.go index 0d4f8ab..5ef7db3 100644 --- a/core/types/vote.go +++ b/core/types/vote.go @@ -59,10 +59,7 @@ func (v *Vote) Clone() *Vote { Type: v.Type, BlockHash: v.BlockHash, Period: v.Period, - Position: Position{ - ChainID: v.Position.ChainID, - Height: v.Position.Height, - }, - Signature: v.Signature.Clone(), + Position: v.Position, + Signature: v.Signature.Clone(), } } |