Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fixing minimal transaction queue price #4204

Merged
merged 2 commits into from
Jan 18, 2017
Merged

Fixing minimal transaction queue price #4204

merged 2 commits into from
Jan 18, 2017

Conversation

tomusdrw
Copy link
Collaborator

Closes #4199
Closes #4198

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. B0-patch M4-core ⛓ Core client code / Rust. labels Jan 18, 2017
@@ -1123,6 +1123,9 @@ impl MinerService for Miner {
// First update gas limit in transaction queue
self.update_gas_limit(chain);

// Update minimal gas price
self.recalibrate_minimal_gas_price();
Copy link
Contributor

@rphmeier rphmeier Jan 18, 2017

Choose a reason for hiding this comment

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

wouldn't this lead to sending off an HTTP request every time chain_new_blocks is called? (potentially multiple times per second)

Copy link
Collaborator Author

@tomusdrw tomusdrw Jan 18, 2017

Choose a reason for hiding this comment

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

Previously it was done in prepare_block, so for mining nodes it was (almost) the same (chain_new_blocks event is not sent to miner if we're syncing afaik)
Also GasCalibrator supports a minimal interval between calibrations:
https://github.com/ethcore/parity/blob/8517369372f2e151dedf5d6f1b6c32bd372453da/ethcore/src/miner/miner.rs#L147-L167
so I don't see an issue here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I see now, just leaving a comment as I skimmed through it

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 18, 2017
@gavofyork gavofyork added A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. and removed A8-looksgood 🦄 Pull request is reviewed well. labels Jan 18, 2017
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. labels Jan 18, 2017
@arkpar arkpar merged commit 24aec51 into master Jan 18, 2017
@arkpar arkpar deleted the min-tx-price branch January 18, 2017 18:44
arkpar pushed a commit that referenced this pull request Jan 19, 2017
* Fixing minimal transaction queue price

* Fixing tests
arkpar added a commit that referenced this pull request Jan 19, 2017
* JsonRPC bump for IPC fix

* Fixing etherscan price parsing (#4202)

* Fixing etherscan price parsing

* Handling all errors

* Fixed --base-path on windows (#4193)

* Fixed --base-path on windows

* Add support for optional args with default text

* Fixing minimal transaction queue price (#4204)

* Fixing minimal transaction queue price

* Fixing tests

* verification: add mainnet BadgeReg ids (#4190)

* verification: mainnet BadgeReg ids

* verification: fetch contracts by name

* verification: better wording

* typo

* reregistered badges

* Console now has admin (#4220)

Fixes #4210

* Non-secure for DappReg (#4216)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants