aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/govstate.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-09 17:24:54 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit638816ae9be2dab6f48a367689563121c85d7786 (patch)
treebb0179cf42b998e5aea51f66fd9f80e7c33bec20 /core/types/govstate.go
parent5aaccf466773e60c93ab150d89abd950bd43ca28 (diff)
downloadgo-tangerine-638816ae9be2dab6f48a367689563121c85d7786.tar.gz
go-tangerine-638816ae9be2dab6f48a367689563121c85d7786.tar.zst
go-tangerine-638816ae9be2dab6f48a367689563121c85d7786.zip
core: support extracting governance state from state trie
Diffstat (limited to 'core/types/govstate.go')
-rw-r--r--core/types/govstate.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/types/govstate.go b/core/types/govstate.go
new file mode 100644
index 000000000..75f77cb0d
--- /dev/null
+++ b/core/types/govstate.go
@@ -0,0 +1,15 @@
+package types
+
+import (
+ "math/big"
+
+ "github.com/dexon-foundation/dexon/common"
+)
+
+type GovState struct {
+ BlockHash common.Hash
+ Number *big.Int
+ Root common.Hash
+ Proof [][]byte
+ Storage [][2][]byte
+}