|
|
@ -2,7 +2,7 @@ package state |
|
|
|
|
|
|
|
import ( |
|
|
|
"bytes" |
|
|
|
"encoding/base64" |
|
|
|
"encoding/hex" |
|
|
|
"sort" |
|
|
|
|
|
|
|
. "github.com/tendermint/tendermint/account" |
|
|
@ -65,7 +65,7 @@ func RandGenesisState(numAccounts int, randBalance bool, minBalance uint64, numV |
|
|
|
for i := 0; i < numAccounts; i++ { |
|
|
|
account, privAccount := RandAccount(randBalance, minBalance) |
|
|
|
accounts[i] = GenesisAccount{ |
|
|
|
Address: base64.StdEncoding.EncodeToString(account.Address), |
|
|
|
Address: hex.EncodeToString(account.Address), |
|
|
|
Amount: account.Balance, |
|
|
|
} |
|
|
|
privAccounts[i] = privAccount |
|
|
@ -75,11 +75,11 @@ func RandGenesisState(numAccounts int, randBalance bool, minBalance uint64, numV |
|
|
|
for i := 0; i < numValidators; i++ { |
|
|
|
valInfo, privVal := RandValidator(randBonded, minBonded) |
|
|
|
validators[i] = GenesisValidator{ |
|
|
|
PubKey: base64.StdEncoding.EncodeToString(BinaryBytes(valInfo.PubKey)), |
|
|
|
PubKey: hex.EncodeToString(BinaryBytes(valInfo.PubKey)), |
|
|
|
Amount: valInfo.FirstBondAmount, |
|
|
|
UnbondTo: []GenesisAccount{ |
|
|
|
{ |
|
|
|
Address: base64.StdEncoding.EncodeToString(valInfo.PubKey.Address()), |
|
|
|
Address: hex.EncodeToString(valInfo.PubKey.Address()), |
|
|
|
Amount: valInfo.FirstBondAmount, |
|
|
|
}, |
|
|
|
}, |
|
|
|