Skip to content
Snippets Groups Projects
Unverified Commit bd8d84a6 authored by psychocrypt's avatar psychocrypt Committed by GitHub
Browse files

Merge pull request #291 from fireice-uk/topic-clearer-dev-switch

Add custom message for dev -> user pool switch
parents c2d76ae6 01236f83
No related branches found
No related tags found
No related merge requests found
......@@ -388,10 +388,16 @@ void executor::on_pool_have_job(size_t pool_id, pool_job& oPoolJob)
if(dat.pool_id != pool_id)
{
if(dat.pool_id == invalid_pool_id)
printer::inst()->print_msg(L2, "Pool logged in.");
jpsock* prev_pool;
if(dat.pool_id != invalid_pool_id && (prev_pool = pick_pool_by_id(dat.pool_id)) != nullptr)
{
if(prev_pool->is_dev_pool())
printer::inst()->print_msg(L2, "Switching back to user pool.");
else
printer::inst()->print_msg(L2, "Pool switched.");
}
else
printer::inst()->print_msg(L2, "Pool switched.");
printer::inst()->print_msg(L2, "Pool logged in.");
}
else
printer::inst()->print_msg(L3, "New block detected.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment