This pull request add threads to the state dump process,
first we verify how much threads are available and the
dump work is divided through them.
For this feature to work properly was necessary to remove some slices (pointers)
from the DB module to avoid use-after-free bug when DB operations batches
are copied (on the thread) to a list (vector) of DB batches.
Issue ticket number and link
No ticket.
Checklist before requesting a review
[X] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics?
[ ] Will this be part of a product update?
If yes, please write one phrase about this update.
Describe your changes
This pull request add threads to the state dump process, first we verify how much threads are available and the dump work is divided through them.
For this feature to work properly was necessary to remove some slices (pointers) from the DB module to avoid use-after-free bug when DB operations batches are copied (on the thread) to a list (vector) of DB batches.
Issue ticket number and link
No ticket.
Checklist before requesting a review