Git Product home page Git Product logo

Comments (4)

adrianbrink avatar adrianbrink commented on August 23, 2024

I think we should have this as a convention:

npm run development - starts a local testnet
npm run testnet - connects to a remote testnet, later on you can specify which testnet through a flag
npm run mainnet - connects to a remote mainnet

from lunie.

adrianbrink avatar adrianbrink commented on August 23, 2024

And the genesis files for each, except the development, one should be in the binary, so that users don't have to deal with separate genesis files.

The development genesis file should live in the repository and a user should be able to update it.

The same applies to keys with money.

Example 1

A user runs npm run development. The genesis file from the file system gets taken and keys with a lot of default money are written into the correct directory. After that command a user can immediately start to use the UI without having to copy any other files.

Example 2

A user runs npm run mainnet. The UI is initialised with the correct genesis file without user interaction and the UI starts syncing with the mainnet.

from lunie.

mappum avatar mappum commented on August 23, 2024

On the testnets branch, I implemented npm run testnet [network] and npm run local.

@adrianbrink I like your idea of managing the keys for local testnets to make it easier to start with coins, I'll add that next.

from lunie.

mappum avatar mappum commented on August 23, 2024

Done as of f1fa74d. Now npm run local will start a local testnet, with your client credited with a large balance of coins.

from lunie.

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.