kindelia / Kindelia

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

`kindelia node clean` improvement #227

Closed kings177 closed 1 year ago

kings177 commented 1 year ago

While debugging, sometimes the chain crashes and we need to delete the last block in order to "unclog" it, i think it would me major if we could choose what blocks to delete. for example:

kindelia node clean -n

deletes the last n blocks in the .kindelia/state/blocks folder.


Another thing involving kindelia node clean that i think would be good, is passing a -y flag to automatically accept the deletion of blocks. for example:

kindelia node clean -y