diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-04-17 14:42:27 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-04-17 14:46:13 +0100 |
commit | d6fd6be5dea3887a041df3b3a5cfcf070cc26cd4 (patch) | |
tree | 97bcd3e1d4a51cbaa262061c8d054389a6c3c10a | |
parent | Merge pull request #803 (diff) | |
download | monero-d6fd6be5dea3887a041df3b3a5cfcf070cc26cd4.tar.xz |
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.
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 70cbaf0fd..0569e748f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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; |