EVM/Node: Add vacuum to evm context
What
Fixes #7401 (closed), #7402 (closed).
Add SQLite command vacuum to evm context.
The vacuum command is essentially a command that allows defragmenting the database by saving the content to a file and reloading it from this file in a cleaner way. Here, we use it to retrieve the intermediate file to create our snapshot.
Why
To prepare the snapshot system.
How
Adding function in the files evm_context and evm_store
Manually testing the MR
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Antoine Lanco