aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-30 14:16:23 +0800
committerGitHub <noreply@github.com>2018-08-30 14:16:23 +0800
commit1f34da04eb9d80648349140eb1442cab87ba5cd8 (patch)
tree3c55841c655053cd3584ef5279264d597587d5e2
parent2681e011bd48ec107dedae9c7dcbc0810673298c (diff)
downloaddexon-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.go2
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()