-
Notifications
You must be signed in to change notification settings - Fork 75
feat: make masterchain gas price configurable #1195
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
Conversation
blockchain/config.go
Outdated
@@ -13,6 +13,7 @@ type Config struct { | |||
SidechainEndpoint url.URL | |||
ContractRegistryAddr common.Address | |||
BlocksBatchSize uint64 | |||
MasterchainGasPrice int64 |
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.
What if it is negative?
etc/node.yaml
Outdated
blockchain: | ||
# gas price for masterchain transactions, in wei | ||
# default is 20 Gwei | ||
masterchain_gas_price: 20000000000 |
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.
Wouldn't it better to write directly "20Gwei" instead, like we do in duration fields?
e415c21
to
55970a8
Compare
d86d3c6
to
6ebb878
Compare
This option now usefull for `deposit` and gatekeeper `withdraw` ;
6ebb878
to
427441d
Compare
9ed1bca
to
8edef1f
Compare
8edef1f
to
e86d71d
Compare
gasLimit: defaultMasterchainGasLimit, | ||
endpoint: defaultMasterchainEndpoint, | ||
logParsePeriod: defaultLogParsePeriod, | ||
blockConfirmations: defaultBlockConfirmations, | ||
}, | ||
sidechain: &chainOpts{ | ||
gasPrice: defaultSidechainGasPrice, | ||
gasPrice: big.NewInt(0).SetUint64(defaultSidechainGasPrice), |
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.
big.NewInt(defaultSidechainGasPrice)
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.
fixed
This option now usefull for
deposit
and gatekeeperwithdraw
;If option not defined gas price is determined by the latest blocks median gas price.