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

Function buildExtraData

cmd/kovan/main.go:19–26  ·  view source on GitHub ↗
(address common.Address, diff *big.Int)

Source from the content-addressed store, hash-verified

17)
18
19func 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
28func Initialize(c *cli.Context) *smartpool.Input {
29 // Setting

Callers 1

RunFunction · 0.70

Calls 1

BigMethod · 0.45

Tested by

no test coverage detected