aboutsummaryrefslogtreecommitdiffstats
path: root/core/types
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-21 12:40:30 +0800
committerGitHub <noreply@github.com>2018-08-21 12:40:30 +0800
commite8f99372159a89fb3128b870de1733a4777a5144 (patch)
tree14a0591932f55532342ef6cc63bd30ced13f46e8 /core/types
parent1ebe7b8729a166745d56203685232cb2e7d41cab (diff)
downloaddexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar.gz
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar.bz2
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar.lz
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar.xz
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.tar.zst
dexon-consensus-e8f99372159a89fb3128b870de1733a4777a5144.zip
core: Notary ack (#69)
Diffstat (limited to 'core/types')
-rw-r--r--core/types/notary.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/types/notary.go b/core/types/notary.go
index 01237b4..216466c 100644
--- a/core/types/notary.go
+++ b/core/types/notary.go
@@ -35,6 +35,16 @@ type NotaryAck struct {
Signature crypto.Signature `json:"signature"`
}
+// Clone returns a deep copy of a NotaryAck.
+func (a *NotaryAck) Clone() *NotaryAck {
+ return &NotaryAck{
+ ProposerID: a.ProposerID,
+ NotaryBlockHash: a.NotaryBlockHash,
+ Hash: a.Hash,
+ Signature: a.Signature,
+ }
+}
+
// Notary represents the consensus information on the compaction chain.
type Notary struct {
ParentHash common.Hash `json:"parent_hash"`