-
Notifications
You must be signed in to change notification settings - Fork 107
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
refactor(gear): move runtime parameter constants into gear-core #4530
base: master
Are you sure you want to change the base?
Conversation
Hadn't noticed the compile error because of the fact that gear-core is a dev-dependency for Vara runtime. It can be fixed by moving it to regular dependencies. Is that a proper way to handle that or maybe constants should be moved entirely to a new crate like |
@@ -151,8 +152,8 @@ where | |||
gas_multiplier: GasMultiplier::one(), | |||
costs: Default::default(), | |||
max_pages: MAX_WASM_PAGES_AMOUNT.into(), | |||
outgoing_limit: 1024, | |||
outgoing_bytes_limit: 64 * 1024 * 1024, | |||
outgoing_limit: OUTGOING_LIMIT, |
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.
wdyt if we remove this constants from configs at all? or provide some default constructor with them not to miss anything, @grishasobol ?
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.
And remove runtime constants?
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.
ah ok. see now it's already removed.
what about ?
mailbox_threshold
max_reservations
max_pages
gas_multiplier and e.t.c
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.
pls wait for @grishasobol opinion here
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.
a few things more to be considered
Moves runtime parameter constants into a separate file under gear-core and then replaces all their definitions with the constant usage.