(address common.Address, diff *big.Int)
| 17 | ) |
| 18 | |
| 19 | func buildExtraData(address common.Address, diff *big.Int) string { |
| 20 | // id = address % (26+26+10)**11 |
| 21 | base := big.NewInt(0) |
| 22 | base.Exp(big.NewInt(62), big.NewInt(11), nil) |
| 23 | id := big.NewInt(0) |
| 24 | id.Mod(address.Big(), base) |
| 25 | return fmt.Sprintf("SmartPool-%s%s", smartpool.BigToBase62(id), smartpool.BigToBase62(diff)) |
| 26 | } |
| 27 | |
| 28 | func Initialize(c *cli.Context) *smartpool.Input { |
| 29 | // Setting |