MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / buildExtraData

Function buildExtraData

cmd/ropsten/ropsten.go:20–27  ·  view source on GitHub ↗
(address common.Address, diff *big.Int)

Source from the content-addressed store, hash-verified

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

Callers 1

RunFunction · 0.70

Calls 1

BigMethod · 0.45

Tested by

no test coverage detected