diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-06 22:12:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 1756fa0135920beb749c313bdd966497bc1bff28 (patch) | |
tree | 32dd160181a3ce6348f4319cf249f4c6eed96ac7 /core/mkalloc.go | |
parent | e79feadf101f8cf05ce32ca5be0a9e44a75da1a9 (diff) | |
download | dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar.gz dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar.bz2 dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar.lz dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar.xz dexon-1756fa0135920beb749c313bdd966497bc1bff28.tar.zst dexon-1756fa0135920beb749c313bdd966497bc1bff28.zip |
core: vm: governance: add node info
Diffstat (limited to 'core/mkalloc.go')
-rw-r--r-- | core/mkalloc.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/mkalloc.go b/core/mkalloc.go index cc246b5a8..a871685f6 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -38,11 +38,19 @@ import ( "github.com/dexon-foundation/dexon/rlp" ) +type nodeInfo struct { + Name string + Email string + Location string + Url string +} + type accountData struct { Balance *big.Int Staked *big.Int Code []byte PublicKey []byte + NodeInfo nodeInfo } type allocItem struct { @@ -67,6 +75,12 @@ func makelist(g *core.Genesis) allocList { Balance: account.Balance, Staked: account.Staked, PublicKey: account.PublicKey, + NodeInfo: nodeInfo{ + Name: account.NodeInfo.Name, + Email: account.NodeInfo.Email, + Location: account.NodeInfo.Location, + Url: account.NodeInfo.Url, + }, }}) } sort.Sort(a) |