codechain icon indicating copy to clipboard operation
codechain copied to clipboard

Need a subcommand that cleans db of the given chain

Open kseo opened this issue 6 years ago • 3 comments

kseo avatar Jul 17 '18 08:07 kseo

@kseo What is the meaing of the "chain"?

majecty avatar Dec 26 '19 07:12 majecty

It means ChainType.

pub enum ChainType {
    Mainnet,
    Solo,
    SimplePoA,
    Tendermint,
    Cuckoo,
    BlakePoW,
    Husky,
    Saluki,
    Corgi,
    Beagle,
    Custom(String),
}

kseo avatar Dec 30 '19 01:12 kseo

We are using the same db path for all the ChainTypes. IMO we may have a simple command that deletes the db directory. Could you let me know the reason why the command requires the ChainType?

majecty avatar Dec 30 '19 07:12 majecty