test account is no longer permanently in genesis block, only put there when testing
This commit is contained in:
@ -36,7 +36,7 @@ func GenesisBlock(db common.Database) *types.Block {
|
||||
Balance string
|
||||
Code string
|
||||
}
|
||||
err := json.Unmarshal(genesisData, &accounts)
|
||||
err := json.Unmarshal(GenesisData, &accounts)
|
||||
if err != nil {
|
||||
fmt.Println("enable to decode genesis json data:", err)
|
||||
os.Exit(1)
|
||||
@ -56,13 +56,7 @@ func GenesisBlock(db common.Database) *types.Block {
|
||||
return genesis
|
||||
}
|
||||
|
||||
const (
|
||||
TestAccount = "e273f01c99144c438695e10f24926dc1f9fbf62d"
|
||||
TestBalance = "1000000000000"
|
||||
)
|
||||
|
||||
var genesisData = []byte(`{
|
||||
"` + TestAccount + `": {"balance": "` + TestBalance + `"},
|
||||
var GenesisData = []byte(`{
|
||||
"0000000000000000000000000000000000000001": {"balance": "1"},
|
||||
"0000000000000000000000000000000000000002": {"balance": "1"},
|
||||
"0000000000000000000000000000000000000003": {"balance": "1"},
|
||||
|
Reference in New Issue
Block a user