aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-20 17:26:32 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:50 +0800
commit57e39b9f4813087014082d98f505631e616f0cb1 (patch)
tree14fc508ed9eff0496111faaf671ad979f7883bf5 /core
parent7f18d9d9823e641360f3a98606b5f94256dd7182 (diff)
downloaddexon-57e39b9f4813087014082d98f505631e616f0cb1.tar
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.gz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.bz2
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.lz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.xz
dexon-57e39b9f4813087014082d98f505631e616f0cb1.tar.zst
dexon-57e39b9f4813087014082d98f505631e616f0cb1.zip
core: included Dexcon metadata in block
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 02d52f30f..b51cea811 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -88,8 +88,9 @@ type Header struct {
Randomness []byte `json:"randomness" gencodec:"required"`
Position coreTypes.Position `json:"position" gencodec:"required"`
WitnessHeight uint64 `json:"witnessHeight" gencodec:"required"`
- WitnessRoot common.Hash `json:"WitnessRoot" gencodec:"required"`
- WitnessReceiptHash common.Hash `json:"WitnessReceiptHash" gencodec:"required"`
+ WitnessRoot common.Hash `json:"witnessRoot" gencodec:"required"`
+ WitnessReceiptHash common.Hash `json:"witnessReceiptHash" gencodec:"required"`
+ DexconMeta []byte `json:"dexconMeta" gencodec:"required"`
ChainID uint32 `json:"chainID" gencodec:"required"`
ChainBlockHeight uint64 `json:"chainBlockHeight" gencodec:"required"`
}