You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMD genesis generator and update circleci config (#865)
* cmd genesis generator and update circleci config
* fix golangci warning
* remove unused constant
* build job only for staging and develop
* account balance 0 as default
* wrong path given when get root via wd
Copy file name to clipboardExpand all lines: cmd/readme.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -139,10 +139,27 @@ go run main.go generate account multisig --addresses "BCZnSfqpP5tqFQlMTYkDeBVFWn
139
139
```
140
140
141
141
## Other Commands
142
+
### Genesis
142
143
```bash
143
-
go run main.go genesis generate
144
+
Usage:
145
+
zoobc genesis generate [flags]
146
+
147
+
Flags:
148
+
-f, --dbPath string path of blockchain's database to be used as data source in case the -w flag is used. If not set, the default resource folder is used (default "../resource/")
149
+
--deploymentName string nomad task name associated to this deployment (default "zoobc-alpha")
-n, --extraNodes int number of 'extra' autogenerated nodes to be deployed using cluster_config.json
152
+
-h, --help help for generate
153
+
--kvFileCustomConfigFile string (optional) full path (path + fileName) of a custom cluster_config.json file to use to generate consulKvInitScript.sh instead of the automatically generated in resource/generated/genesis directory
154
+
--logLevels string default log levels for all nodes (for kvConsulScript.sh). example: 'warn info fatal error panic' (default "fatal error panic")
Copy file name to clipboardExpand all lines: readme.md
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,14 @@
16
16
17
17
Table of Contents:
18
18
19
-
-[Environments](#environments)
20
-
-[Install](#install)
21
-
-[Build](#build)
22
-
-[Run](#run)
23
-
-[Tests](#tests)
24
-
-[Swagger](#swagger)
25
-
-[Contributing](#contributing)
26
-
-[GRPC web proxy for browser](#grpc-web-proxy-for-browser)
19
+
-[Environments](#environments)
20
+
-[Install](#install)
21
+
-[Build](#build)
22
+
-[Run](#run)
23
+
-[Tests](#tests)
24
+
-[Swagger](#swagger)
25
+
-[Contributing](#contributing)
26
+
-[GRPC web proxy for browser](#grpc-web-proxy-for-browser)
27
27
28
28
### Environments
29
29
@@ -52,16 +52,15 @@ Table of Contents:
52
52
To make use of the `Makefile` please rename `github.token.example` to `github.token` and place your github token there. This is required since we are accessing private repository for one of our dependencies.
53
53
54
54
- Core
55
-
56
-
note: For cross compilation please install and activate docker.
57
-
55
+
> note: For cross compilation please install and activate docker.
58
56
For:
59
57
60
58
- host: `go build -o zoobc`
61
59
- darwin: `make VERSION=v1.10.1 core-darwin`
62
60
- linux (386 & amd64): `make VERSION=v1.10.1 core-linux`
63
61
- windows (32 & 64bit): `make VERSION=v1.10.1 core-windows`
64
-
62
+
> With genesis replacement, you can add argument `genesis=true` and what your target is {develop,staging,alhpa(default),local}, like:
63
+
`make build genesis=true gen-target=develop gen-output=dist` for the local target you need create `local.preRegisteredNodes.json`.
0 commit comments