8000 feat: make masterchain gas price configurable by sokel · Pull Request #1195 · sonm-io/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 3 commits into from
Jul 25, 2018

Conversation

sokel
Copy link
Member
@sokel sokel commented Jul 12, 2018

This option now usefull for deposit and gatekeeper withdraw;
If option not defined gas price is determined by the latest blocks median gas price.

@sokel sokel requested review from a team as code owners July 12, 2018 12:34
@@ -13,6 +13,7 @@ type Config struct {
SidechainEndpoint url.URL
ContractRegistryAddr common.Address
BlocksBatchSize uint64
MasterchainGasPrice int64
Copy link
Member

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
Copy link
Member

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?

@sokel sokel force-pushed the feat/configurable-gas-price branch from e415c21 to 55970a8 Compare July 13, 2018 17:07
@sokel sokel requested a review from 3Hren July 17, 2018 11:07
@3Hren 3Hren mentioned this pull request Jul 19, 2018
@sokel sokel added the T: WIP This PR/Issue still in progress label Jul 20, 2018
@sokel sokel force-pushed the feat/configurable-gas-price branch 2 times, most recently from d86d3c6 to 6ebb878 Compare July 23, 2018 15:10
This option now usefull for `deposit` and gatekeeper `withdraw` ;
@sokel sokel force-pushed the feat/configurable-gas-price branch from 6ebb878 to 427441d Compare July 23, 2018 15:10
@sokel sokel added S: Node This PR/Issue changes Node T: feature This PR/Issue adds a new feature P: medium This PR/Issue has normal priority S: Blockchain This PR/Issue changes Blockchain API and removed T: WIP This PR/Issue still in progress labels Jul 24, 2018
@sokel sokel requested a review from antmat July 24, 2018 10:41
@sokel sokel force-pushed the feat/configurable-gas-price branch from 9ed1bca to 8edef1f Compare July 24, 2018 14:14
@sokel sokel force-pushed the feat/configurable-gas-price branch from 8edef1f to e86d71d Compare July 24, 2018 14:18
gasLimit: defaultMasterchainGasLimit,
endpoint: defaultMasterchainEndpoint,
logParsePeriod: defaultLogParsePeriod,
blockConfirmations: defaultBlockConfirmations,
},
sidechain: &chainOpts{
gasPrice: defaultSidechainGasPrice,
gasPrice: big.NewInt(0).SetUint64(defaultSidechainGasPrice),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big.NewInt(defaultSidechainGasPrice)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@antmat antmat merged commit bc0fb0d into master Jul 25, 2018
@antmat antmat deleted the feat/configurable-gas-price branch July 25, 2018 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: medium This PR/Issue has normal priority S: Blockchain This PR/Issue changes Blockchain API S: Node This PR/Issue changes Node T: feature This PR/Issue adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0