Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hive
hive
Commits
b317018b
Commit
b317018b
authored
May 17, 2022
by
Andrzej Lisak
Browse files
reserve enough space in _pending_tx for both popped and pending transactions
parent
bacd4033
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/chain/include/hive/chain/db_with.hpp
View file @
b317018b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment