diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-30 10:45:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 10:45:06 +0800 |
commit | 2681e011bd48ec107dedae9c7dcbc0810673298c (patch) | |
tree | 11dbe2b7ff285d3fa57d983e1103ccb61bfe122c /core/types | |
parent | ca3b30a62ff85090c1a721602e8b202e6ae9a2bd (diff) | |
download | tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.gz tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.bz2 tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.lz tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.xz tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.tar.zst tangerine-consensus-2681e011bd48ec107dedae9c7dcbc0810673298c.zip |
core: Leader Selector. (#80)
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/block.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index 78548b4..e528893 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -72,6 +72,8 @@ type Block struct { Acks map[common.Hash]struct{} `json:"acks"` Signature crypto.Signature `json:"signature"` + CRSSignature crypto.Signature `json:"crs_signature"` + Notary Notary `json:"notary"` } @@ -110,6 +112,7 @@ func (b *Block) Clone() (bcopy *Block) { bcopy.Hash = b.Hash bcopy.Height = b.Height bcopy.Signature = b.Signature.Clone() + bcopy.CRSSignature = b.CRSSignature.Clone() bcopy.Notary.Timestamp = b.Notary.Timestamp bcopy.Notary.Height = b.Notary.Height if bcopy.Timestamps == nil { |