def reset_chain(data_dir): chaindata_dir = get_chaindata_dir(data_dir) remove_dir_if_exists(chaindata_dir) dapp_dir = get_dapp_dir(data_dir) remove_dir_if_exists(dapp_dir) nodekey_path = get_nodekey_path(data_dir) remove_file_if_exists(nodekey_path) geth_ipc_path = get_geth_ipc_path(data_dir) remove_file_if_exists(geth_ipc_path)
def get_blockchain_dapp_dir(self, chain_name): return get_dapp_dir(self.get_blockchain_data_dir(chain_name))