aboutsummaryrefslogtreecommitdiffstats
path: root/core/mkalloc.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-06 22:12:40 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit32dcd528f9152d6fe3e32f76adb1ea3c595910de (patch)
tree68a8468659525481527b417548ff4c9e39e17cb7 /core/mkalloc.go
parentc1548136288e12b83a993821b5668899aca53804 (diff)
downloadgo-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar.gz
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar.bz2
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar.lz
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar.xz
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.tar.zst
go-tangerine-32dcd528f9152d6fe3e32f76adb1ea3c595910de.zip
core: vm: governance: add node info
Diffstat (limited to 'core/mkalloc.go')
-rw-r--r--core/mkalloc.go14
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)