diff options
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) |