Tweak command handling

Modularize, add help and exit commands.
Fix shutdown_tcp() and p2pool to make sure servers exit immediately
when terminating.
This commit is contained in:
Howard Chu
2021-08-23 22:25:35 +01:00
parent f7bd2f1815
commit 0dc3baa480
4 changed files with 111 additions and 37 deletions

View File

@@ -41,6 +41,7 @@ public:
int run();
bool stopped() const { return m_stopped; }
void stop();
const Params& params() const { return *m_params; }
BlockTemplate& block_template() { return *m_blockTemplate; }