mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 15:16:40 -08:00
blockchain: update cumulative block limit when popping a block
Avoids possible issues with accepting a tx too large to fit in an actual block. Reported by smooth.
This commit is contained in:
@@ -498,6 +498,7 @@ block Blockchain::pop_block_from_blockchain()
|
||||
}
|
||||
}
|
||||
}
|
||||
update_next_cumulative_size_limit();
|
||||
m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());
|
||||
|
||||
return popped_block;
|
||||
|
||||
Reference in New Issue
Block a user