Code Monkey home page Code Monkey logo

Comments (5)

udosson avatar udosson commented on June 6, 2024

Putting the reset wallet data function into the network.sh file seems appropriate to me. I gonna tackle this tomorrow.

from blockchain-carbon-accounting.

michaelbauerinc avatar michaelbauerinc commented on June 6, 2024

That seems to make sense to me as well. I just pushed some changes that added a resetAllData function to remove the wallets and fabric-ca-server dbs, please let me know if there's anything else thats needed for this task.

from blockchain-carbon-accounting.

udosson avatar udosson commented on June 6, 2024

Great, thanks a lot @michaelbauerinc.
I would add the resetAllData function to networkDown. what do you think of this?
networkDown--> Stop and remove everything for a fresh start

from blockchain-carbon-accounting.

michaelbauerinc avatar michaelbauerinc commented on June 6, 2024

That makes sense to me, except in the case that a developer might want to stop the network without removing data. I believe that if resetAllData was added to networkDown, the only option for that would be to restart docker. Perhaps there could be an argument to networkDown that does not remove data/containers? Or perhaps the default should be not removing data/containers and a "hard" argument could be passed that removes data etc.

from blockchain-carbon-accounting.

udosson avatar udosson commented on June 6, 2024

@michaelbauerinc good points!
At the moment, networkDown deletes all docker volumes and removes the orphans network.sh
I like the idea of putting an argument which stands for hard reset or just stopping all container.
Have a look at line 448ff. The following lines aren't correct by now, but we could use them to build a solution.
Do you have time to work on this?

from blockchain-carbon-accounting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.