()
| 409 | } |
| 410 | |
| 411 | func newTestMainnetGenesisBlock() *Genesis { |
| 412 | log.Info("newTestMainnetGenesisBlock runmode:", "vv", configs.GetRunMode()) |
| 413 | candidates := configs.Candidates() |
| 414 | return &Genesis{ |
| 415 | Config: configs.ChainConfigInfo(), |
| 416 | Timestamp: 1553754594000, |
| 417 | ExtraData: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000"), |
| 418 | GasLimit: configs.DefaultGasLimitPerBlock, |
| 419 | Difficulty: big.NewInt(1), |
| 420 | Alloc: map[common.Address]GenesisAccount{ |
| 421 | candidates[0]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 422 | candidates[1]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 423 | candidates[2]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 424 | candidates[3]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 425 | candidates[4]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 426 | candidates[5]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 427 | |
| 428 | candidates[6]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 429 | candidates[7]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 430 | candidates[8]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 431 | candidates[9]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 432 | candidates[10]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 433 | candidates[11]: {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 434 | |
| 435 | // contract admin account 21 |
| 436 | common.HexToAddress("0xb3801b8743dea10c30b0c21cae8b1923d9625f84"): {Balance: new(big.Int).Mul(big.NewInt(300000), big.NewInt(configs.Cpc))}, |
| 437 | // bank 22 |
| 438 | common.HexToAddress("0xabb528bffc707c2c507307e426ce810a7ad93ed6"): {Balance: new(big.Int).Mul(big.NewInt(1000000000), big.NewInt(configs.Cpc))}, |
| 439 | }, |
| 440 | Dpor: types.DporSnap{ |
| 441 | Proposers: configs.Proposers(), |
| 442 | Seal: types.DporSignature{}, |
| 443 | Sigs: make([]types.DporSignature, configs.TestMainnetValidatorsNumber), |
| 444 | Validators: configs.Validators(), |
| 445 | }, |
| 446 | } |
| 447 | } |
no test coverage detected