Commit b317018b authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

reserve enough space in _pending_tx for both popped and pending transactions

parent bacd4033
......@@ -53,6 +53,7 @@ struct pending_transactions_restorer
~pending_transactions_restorer()
{
_db._pending_tx.reserve( _db._popped_tx.size() + _pending_transactions.size() );
auto start = fc::time_point::now();
bool apply_trxs = true;
uint32_t applied_txs = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment