mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
Changed BLOCK_FOUND wording
This commit is contained in:
parent
db9e5ba332
commit
be8b38e5cf
2 changed files with 10 additions and 5 deletions
|
@ -438,11 +438,13 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra)
|
||||||
", reward = " << log::Gray() << log::XMRAmount(data.reward));
|
", reward = " << log::Gray() << log::XMRAmount(data.reward));
|
||||||
|
|
||||||
if (!sidechain_id.empty()) {
|
if (!sidechain_id.empty()) {
|
||||||
PoolBlock* block = side_chain().find_block(sidechain_id);
|
const 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);
|
|
||||||
|
|
||||||
const Wallet& w = params().m_wallet;
|
const Wallet& w = params().m_wallet;
|
||||||
|
|
||||||
|
const char* who = (block->m_minerWallet == w) ? "you" : "someone else in this p2pool";
|
||||||
|
LOGINFO(0, log::LightGreen() << "BLOCK FOUND: main chain block at height " << data.height << " was mined by " << who << BLOCK_FOUND);
|
||||||
|
|
||||||
const uint64_t payout = block->get_payout(w);
|
const uint64_t payout = block->get_payout(w);
|
||||||
if (payout) {
|
if (payout) {
|
||||||
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);
|
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);
|
||||||
|
|
|
@ -604,12 +604,15 @@ bool SideChain::add_external_block(PoolBlock& block, std::vector<hash>& missing_
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block.m_sidechainId == m_watchBlockSidechainId) {
|
if (block.m_sidechainId == m_watchBlockSidechainId) {
|
||||||
LOGINFO(0, log::LightGreen() << "BLOCK FOUND: main chain block at height " << m_watchBlock.height << " was mined by this p2pool" << BLOCK_FOUND);
|
const Wallet& w = m_pool->params().m_wallet;
|
||||||
|
|
||||||
|
const char* who = (block.m_minerWallet == w) ? "you" : "someone else in this p2pool";
|
||||||
|
LOGINFO(0, log::LightGreen() << "BLOCK FOUND: main chain block at height " << m_watchBlock.height << " was mined by " << who << BLOCK_FOUND);
|
||||||
|
|
||||||
m_watchBlockSidechainId = {};
|
m_watchBlockSidechainId = {};
|
||||||
data = m_watchBlock;
|
data = m_watchBlock;
|
||||||
block_found = true;
|
block_found = true;
|
||||||
|
|
||||||
const Wallet& w = m_pool->params().m_wallet;
|
|
||||||
const uint64_t payout = block.get_payout(w);
|
const uint64_t payout = block.get_payout(w);
|
||||||
if (payout) {
|
if (payout) {
|
||||||
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);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue