MCPcopy Index your code
hub / github.com/SmartPool/smartpool-client / shouldStop

Method shouldStop

protocol/smartpool.go:167–179  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

165}
166
167func (sp *SmartPool) shouldStop(err error) bool {
168 if err == nil {
169 return false
170 }
171 if err.Error() == "timeout error" {
172 smartpool.Output.Printf("The tx might not be verified. Current claim is dropped. Continue with next claim.\n")
173 return false
174 } else if sp.HotStop {
175 return true
176 } else {
177 return false
178 }
179}
180
181func (sp *SmartPool) actOnTick() {
182 defer func() {

Callers 1

actOnTickMethod · 0.95

Calls 1

PrintfMethod · 0.65

Tested by

no test coverage detected