kindelia / Kindelia

An efficient, secure cryptocomputer
https://kindelia.org/
609 stars 38 forks source link

add `node clean blocks` command #226

Closed racs4 closed 2 years ago

racs4 commented 2 years ago

this command allows clear all, half, or a specific quantity of blocks from the file system

steinerkelvin commented 2 years ago

Why is this relevant?

racs4 commented 2 years ago

It is just an utility command. It can be used if the user wants to save space or if some block got corrupted. Without this command, the user would have to delete all folder or find the last blocks and delete them manually (it can be hard if there are many blocks and you don't know the exact last height).

steinerkelvin commented 2 years ago

Can you add the command examples to the top comment on cli.rs ?

racs4 commented 2 years ago

Can you add the command examples to the top comment on cli.rs ?

Done in 2ae3375