Skip to content
This repository has been archived by the owner. It is now read-only.

Exit if failed to start pool #17

Merged
merged 1 commit into from May 4, 2018
Merged

Exit if failed to start pool #17

merged 1 commit into from May 4, 2018

Conversation

funkypenguin
Copy link

@funkypenguin funkypenguin commented May 3, 2018

New PR (old one was a mistake)

When bringing up the entire mining pool stack under Docker Swarm, the TurtleCoind daemon starts at the same time as all the other elements. However, TurtleCoind takes some time to be ready (syncing with the blockchain, etc), and if pool starts before daemon is ready (quite likely), it'll log an error about being unable to start, but will then just hang around being useless. I discovered this under my swarm when pool wouln't listen on its ports (i.e., 3333 etc) on first deploy, but if I killed and recreated it, it'd start listening as expected.

This change just forces the pool thread to exit (rather than return) if it's logged an error about failing to start, so that a replacement can be spawned.

@RocksteadyTC RocksteadyTC merged commit 7ebac75 into turtlecoin:master May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants