Closed kshitijyelpale closed 3 years ago
I think it would be better to also add this logic to the network.sh file for networkDown. So when the network goes down the wallet is deleted.
For the reason being, during the networkDown all the temporary files are deleted such as certificates, docker instances etc.
I think it would be better to also add this logic to the network.sh file for networkDown. So when the network goes down the wallet is deleted.
For the reason being, during the networkDown all the temporary files are deleted such as certificates, docker instances etc.
Okay, I'll also add there in down method.
I removed the code from initServer.js file, now there is no need of that. Even if a user has not stopped the network and trying to start the network again, he/she needs to down first anyhow.
(+) added new method to clearWallet files in initServer.js