aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/block.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/block.go')
-rw-r--r--core/types/block.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 297f479..fc69481 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -68,6 +68,7 @@ type Block struct {
Timestamp time.Time `json:"timestamps"`
Acks common.SortedHashes `json:"acks"`
Payload []byte `json:"payload"`
+ Randomness []byte `json:"randomness"`
ConsensusTimestamp time.Time `json:"consensus_timestamp"`
ConsensusHeight uint64 `json:"consensus_height"`
Witness Witness `json:"witness"`
@@ -102,6 +103,8 @@ func (b *Block) Clone() (bcopy *Block) {
copy(bcopy.Acks, b.Acks)
bcopy.Payload = make([]byte, len(b.Payload))
copy(bcopy.Payload, b.Payload)
+ bcopy.Randomness = make([]byte, len(b.Randomness))
+ copy(bcopy.Randomness, b.Randomness)
return
}