mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
Added new Params
This commit is contained in:
parent
51298b5264
commit
384f548c77
1 changed files with 13 additions and 13 deletions
|
|
@ -231,8 +231,8 @@ func (w *wizard) makeGenesis() {
|
||||||
code, _ = contractBackend.CodeAt(ctx, multiSignWalletAddr, nil)
|
code, _ = contractBackend.CodeAt(ctx, multiSignWalletAddr, nil)
|
||||||
storage = make(map[common.Hash]common.Hash)
|
storage = make(map[common.Hash]common.Hash)
|
||||||
contractBackend.ForEachStorageAt(ctx, multiSignWalletAddr, nil, f)
|
contractBackend.ForEachStorageAt(ctx, multiSignWalletAddr, nil, f)
|
||||||
fBalance := big.NewInt(0) // 16m
|
fBalance := big.NewInt(0) // 3 billion
|
||||||
fBalance.Add(fBalance, big.NewInt(10*0))
|
fBalance.Add(fBalance, big.NewInt(3*1000*1000*1000))
|
||||||
fBalance.Mul(fBalance, big.NewInt(1000000000000000000))
|
fBalance.Mul(fBalance, big.NewInt(1000000000000000000))
|
||||||
genesis.Alloc[common.HexToAddress(common.FoudationAddr)] = core.GenesisAccount{
|
genesis.Alloc[common.HexToAddress(common.FoudationAddr)] = core.GenesisAccount{
|
||||||
Balance: fBalance,
|
Balance: fBalance,
|
||||||
|
|
@ -298,24 +298,24 @@ func (w *wizard) makeGenesis() {
|
||||||
storage = make(map[common.Hash]common.Hash)
|
storage = make(map[common.Hash]common.Hash)
|
||||||
contractBackend.ForEachStorageAt(ctx, multiSignWalletTeamAddr, nil, f)
|
contractBackend.ForEachStorageAt(ctx, multiSignWalletTeamAddr, nil, f)
|
||||||
// Team balance.
|
// Team balance.
|
||||||
balance := big.NewInt(0) // 12m
|
balance := big.NewInt(0) // 20 billion
|
||||||
balance.Add(balance, big.NewInt(12*0))
|
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*0))
|
subBalance.Add(subBalance, big.NewInt(int64(len(signers))*50*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{
|
||||||
Balance: balance,
|
Balance: balance,
|
||||||
Code: code,
|
Code: code,
|
||||||
Storage: storage,
|
Storage: storage,
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println("What is swap wallet address for fund 37.5Billion XDC?")
|
fmt.Println("What is swap wallet address for fund 14.5Billion XDC?")
|
||||||
swapAddr := *w.readAddress()
|
swapAddr := *w.readAddress()
|
||||||
baseBalance := big.NewInt(0) // 37.5Billion
|
baseBalance := big.NewInt(0) // 14.5Billion
|
||||||
baseBalance.Add(baseBalance, big.NewInt(375*1000*1000*100))
|
baseBalance.Add(baseBalance, big.NewInt(145*1000*1000*100))
|
||||||
baseBalance.Mul(baseBalance, big.NewInt(1000000000000000000))
|
baseBalance.Mul(baseBalance, big.NewInt(1000000000000000000))
|
||||||
genesis.Alloc[swapAddr] = core.GenesisAccount{
|
genesis.Alloc[swapAddr] = core.GenesisAccount{
|
||||||
Balance: baseBalance,
|
Balance: baseBalance,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue