-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: add embedded node config #3477
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3477 +/- ##
==========================================
- Coverage 86.11% 86.11% -0.01%
==========================================
Files 331 331
Lines 38541 38556 +15
==========================================
+ Hits 33190 33201 +11
- Misses 3819 3824 +5
+ Partials 1532 1531 -1 ☔ View full report in Codecov by Sentry. |
a147a60
to
768d91e
Compare
Default config for VM CLI is privnet + InMemory DB. |
bdee5e4
to
319faeb
Compare
22ad6a6
to
bf02042
Compare
6128144
to
950f35d
Compare
950f35d
to
0e9f525
Compare
0e3a68d
to
edbb172
Compare
Linter and tests are failing. |
de919b6
to
cbc1314
Compare
config/config_embed.go
Outdated
// UnitTestnetConfig is the unit testnet configuration. | ||
// | ||
//go:embed protocol.unit_testnet.yml | ||
var UnitTestnetConfig []byte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this one, btw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, but we have it as a hidden flag in CLI.
cli.BoolFlag{Name: "unittest", Hidden: true},
config/config_embed.go
Outdated
// UnitTestnetConfig is the unit testnet configuration. | ||
// | ||
//go:embed protocol.unit_testnet.yml | ||
var UnitTestnetConfig []byte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't.
f96259e
to
23df797
Compare
eb571fb
to
257ee53
Compare
257ee53
to
4ca2127
Compare
Please, fix the commit message: |
4ca2127
to
58256de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before re-requesting review, please, perform self-review and ensure that Linter and testing GA jobs pass.
58256de
to
c9c3bea
Compare
If `config-path` is not passed, default configs are used according to the set network. In VM CLI the default privnet config with InMemory db is used. Close #3450 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
c9c3bea
to
43ee1b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add "Close #3459" to the commit/PR message.
Otherwise LGTM.
If
config-path
is not provided then the default config is used. Ifconfig-path
is provided but the directory does not contain a configuration file for the desired passed network and this directory isn't our default./config
, the error "config '%s' doesn't exist" will be received.Close #3450