Comments (4)
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.
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.
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.
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)
- CVE-2021-27515 (Medium) detected in url-parse-1.4.7.tgz HOT 1
- CVE-2018-19797 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2019-6284 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2019-6286 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2018-20821 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2019-6283 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2021-28092 (High) detected in is-svg-3.0.0.tgz HOT 1
- CVE-2021-29060 (High) detected in color-string-1.5.3.tgz HOT 1
- WS-2020-0091 (High) detected in http-proxy-1.17.0.tgz HOT 1
- CVE-2020-7608 (Medium) detected in yargs-parser-11.1.1.tgz HOT 1
- CVE-2018-20190 (Medium) detected in node-sass-4.14.1.tgz HOT 1
- CVE-2020-15168 (Medium) detected in node-fetch-2.6.0.tgz HOT 1
- CVE-2020-15366 (Medium) detected in ajv-4.11.8.tgz, ajv-6.10.2.tgz HOT 1
- WS-2019-0427 (Medium) detected in elliptic-6.5.0.tgz HOT 1
- CVE-2020-36049 (High) detected in socket.io-parser-3.3.0.tgz HOT 1
- WS-2019-0424 (Medium) detected in elliptic-6.5.0.tgz HOT 1
- CVE-2021-23362 (Medium) detected in hosted-git-info-2.8.4.tgz HOT 1
- CVE-2021-23364 (Medium) detected in browserslist-4.6.6.tgz, browserslist-4.16.3.tgz HOT 1
- CVE-2021-23368 (Medium) detected in multiple libraries HOT 1
- No binaries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lunie.