mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
Initial ValidatorCap changed to 10M
This commit is contained in:
parent
f3bd1beb36
commit
d32e733510
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ func (w *wizard) makeGenesis() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validatorCap := new(big.Int)
|
validatorCap := new(big.Int)
|
||||||
validatorCap.SetString("50000000000000000000000", 10)
|
validatorCap.SetString("10000000000000000000000000", 10)
|
||||||
var validatorCaps []*big.Int
|
var validatorCaps []*big.Int
|
||||||
genesis.ExtraData = make([]byte, 32+len(signers)*common.AddressLength+65)
|
genesis.ExtraData = make([]byte, 32+len(signers)*common.AddressLength+65)
|
||||||
for i, signer := range signers {
|
for i, signer := range signers {
|
||||||
|
|
@ -302,7 +302,7 @@ func (w *wizard) makeGenesis() {
|
||||||
balance.Add(balance, big.NewInt(20*1000*1000*1000))
|
balance.Add(balance, big.NewInt(20*1000*1000*1000))
|
||||||
balance.Mul(balance, big.NewInt(1000000000000000000))
|
balance.Mul(balance, big.NewInt(1000000000000000000))
|
||||||
subBalance := big.NewInt(0) // i * 50k
|
subBalance := big.NewInt(0) // i * 50k
|
||||||
subBalance.Add(subBalance, big.NewInt(int64(len(signers))*50*1000))
|
subBalance.Add(subBalance, big.NewInt(int64(len(signers))*10*1000*1000))
|
||||||
subBalance.Mul(subBalance, big.NewInt(1000000000000000000))
|
subBalance.Mul(subBalance, big.NewInt(1000000000000000000))
|
||||||
balance.Sub(balance, subBalance) // 12m - i * 50k
|
balance.Sub(balance, subBalance) // 12m - i * 50k
|
||||||
genesis.Alloc[common.HexToAddress(common.TeamAddr)] = core.GenesisAccount{
|
genesis.Alloc[common.HexToAddress(common.TeamAddr)] = core.GenesisAccount{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue