mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-03 17:29:24 +00:00
Made payout messages more visible
This commit is contained in:
parent
07a5b191bb
commit
be18ad4177
2 changed files with 14 additions and 4 deletions
|
@ -405,10 +405,16 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra)
|
||||||
PoolBlock* block = side_chain().find_block(sidechain_id);
|
PoolBlock* block = side_chain().find_block(sidechain_id);
|
||||||
if (block) {
|
if (block) {
|
||||||
LOGINFO(0, log::LightGreen() << "BLOCK FOUND: main chain block at height " << data.height << " was mined by this p2pool" << BLOCK_FOUND);
|
LOGINFO(0, log::LightGreen() << "BLOCK FOUND: main chain block at height " << data.height << " was mined by this p2pool" << BLOCK_FOUND);
|
||||||
const uint64_t payout = block->get_payout(params().m_wallet);
|
|
||||||
|
const Wallet& w = params().m_wallet;
|
||||||
|
const uint64_t payout = block->get_payout(w);
|
||||||
if (payout) {
|
if (payout) {
|
||||||
LOGINFO(0, log::LightCyan() << "You received a payout of " << log::LightGreen() << log::XMRAmount(payout) << log::LightCyan() << " in block " << log::LightGreen() << data.height);
|
LOGINFO(0, log::LightCyan() << "Your wallet " << log::LightGreen() << w << log::LightCyan() << " got a payout of " << log::LightGreen() << log::XMRAmount(payout) << log::LightCyan() << " in block " << log::LightGreen() << data.height);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
LOGINFO(0, log::LightCyan() << "Your wallet " << log::LightYellow() << w << log::LightCyan() << " didn't get a payout in block " << log::LightYellow() << data.height << log::LightCyan() << " because you had no shares in PPLNS window");
|
||||||
|
}
|
||||||
|
|
||||||
api_update_block_found(&data, block);
|
api_update_block_found(&data, block);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -566,9 +566,13 @@ bool SideChain::add_external_block(PoolBlock& block, std::vector<hash>& missing_
|
||||||
data = m_watchBlock;
|
data = m_watchBlock;
|
||||||
block_found = true;
|
block_found = true;
|
||||||
|
|
||||||
const uint64_t payout = block.get_payout(m_pool->params().m_wallet);
|
const Wallet& w = m_pool->params().m_wallet;
|
||||||
|
const uint64_t payout = block.get_payout(w);
|
||||||
if (payout) {
|
if (payout) {
|
||||||
LOGINFO(0, log::LightCyan() << "You received a payout of " << log::LightGreen() << log::XMRAmount(payout) << log::LightCyan() << " in block " << log::LightGreen() << data.height);
|
LOGINFO(0, log::LightCyan() << "Your wallet " << log::LightGreen() << w << log::LightCyan() << " got a payout of " << log::LightGreen() << log::XMRAmount(payout) << log::LightCyan() << " in block " << log::LightGreen() << data.height);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
LOGINFO(0, log::LightCyan() << "Your wallet " << log::LightYellow() << w << log::LightCyan() << " didn't get a payout in block " << log::LightYellow() << data.height << log::LightCyan() << " because you had no shares in PPLNS window");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue