-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add --policy-config argument to create-genesis-config #3414
base: main
Are you sure you want to change the base?
Add --policy-config argument to create-genesis-config #3414
Conversation
cc46027
to
975a240
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.
Great idea! 👍
|
||
Default value: `0` | ||
* `--read-operation-price <READ_OPERATION_PRICE>` — Set the price per read operation | ||
Possible values: `default`, `only-fuel`, `fuel-and-block`, `all-categories`, `devnet` |
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.
I'm not sure we need all these, and I don't think the names should be user-visible like this. I think we should only have two user-visible ones:
testnet
(renamed fromdevnet
), andno-fees
(renamed fromdefault
, where everything is zero and limits areMAX
).
The other two are, I think, only used in tests, and should be feature-gated?
/// Set the base price for creating a block. | ||
#[arg(long, default_value = "0")] | ||
block_price: Amount, | ||
#[arg(long)] |
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.
I think there's an option in clap
to mark arguments mutually exclusive - i.e. that one doesn't have to be provided if another one is (here path to the config file).
Unless we want to allow for overwriting the config file with CLI args but if we do I'd suggest adding that explicitly in the comments.
Motivation
Right now we pass everything manually, but there's already a config that can make this easier
Proposal
User the policy config instead
Test Plan
CI
Release Plan