diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-30 14:16:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 14:16:23 +0800 |
commit | 1f34da04eb9d80648349140eb1442cab87ba5cd8 (patch) | |
tree | 3c55841c655053cd3584ef5279264d597587d5e2 | |
parent | 2681e011bd48ec107dedae9c7dcbc0810673298c (diff) | |
download | dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar.gz dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar.bz2 dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar.lz dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar.xz dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.tar.zst dexon-consensus-1f34da04eb9d80648349140eb1442cab87ba5cd8.zip |
Copy block (#82)
-rw-r--r-- | core/types/block.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index e528893..1a55121 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -110,6 +110,8 @@ func (b *Block) Clone() (bcopy *Block) { bcopy.ProposerID = b.ProposerID bcopy.ParentHash = b.ParentHash bcopy.Hash = b.Hash + bcopy.ShardID = b.ShardID + bcopy.ChainID = b.ChainID bcopy.Height = b.Height bcopy.Signature = b.Signature.Clone() bcopy.CRSSignature = b.CRSSignature.Clone() |