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:
moneromooo-monero 2016-04-17 14:42:27 +01:00
parent 1c66fe04bc
commit d6fd6be5de
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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()); m_tx_pool.on_blockchain_dec(m_db->height()-1, get_tail_id());
return popped_block; return popped_block;