()
| 25 | } |
| 26 | |
| 27 | func (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 | |
| 39 | func (pm *PoolMonitor) RequireContractUpdate() bool { |
| 40 | addr, err := pm.client.PoolContract(nil) |
nothing calls this directly
no test coverage detected