mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
Added logging for the extra_nonce fix
This commit is contained in:
parent
345c231a9a
commit
915988d694
1 changed files with 4 additions and 0 deletions
|
@ -438,6 +438,8 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
|
|||
const int create_miner_tx_result = create_miner_tx(data, m_shares, max_reward_amounts_weight, false);
|
||||
if (create_miner_tx_result < 0) {
|
||||
if (create_miner_tx_result == -3) {
|
||||
LOGINFO(4, "Readjusting miner_tx to reduce extra nonce size");
|
||||
|
||||
// Too many extra bytes were added, refine max_reward_amounts_weight and miner_tx_weight
|
||||
if (!SideChain::split_reward(base_reward + final_fees, m_shares, m_rewards)) {
|
||||
return;
|
||||
|
@ -462,6 +464,8 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
|
|||
if (create_miner_tx(data, m_shares, max_reward_amounts_weight, false) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOGINFO(4, "New extra nonce size = " << m_poolBlockTemplate->m_extraNonceSize);
|
||||
}
|
||||
else {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue