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.
release-v0.4.0.1
moneromooo-monero 8 years ago
parent 1c66fe04bc
commit d6fd6be5de
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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;

Loading…
Cancel
Save