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

Method RequireClientUpdate

ethereum/geth/pool_monitor.go:27–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (pm *PoolMonitor) RequireClientUpdate() bool {
28 version, err := pm.client.ClientVersion(nil)
29 if err != nil {
30 smartpool.Output.Printf("Getting client version from gateway failed. Error: %s\n", err)
31 return false
32 }
33 if version[0] != pm.version[0] || version[1] != pm.version[1] {
34 return true
35 }
36 return false
37}
38
39func (pm *PoolMonitor) RequireContractUpdate() bool {
40 addr, err := pm.client.PoolContract(nil)

Callers

nothing calls this directly

Implementers 1

PoolMonitorethereum/geth/pool_monitor.go

Calls 2

ClientVersionMethod · 0.65
PrintfMethod · 0.65

Tested by

no test coverage detected