kindelia / Kindelia

An efficient, secure cryptocomputer
https://kindelia.org/
602 stars 41 forks source link

add `node clean blocks` command #226

Closed racs4 closed 1 year ago

racs4 commented 1 year ago

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

steinerkelvin commented 1 year ago

Why is this relevant?

racs4 commented 1 year 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 1 year ago

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

racs4 commented 1 year ago

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

Done in 2ae3375