-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fixing minimal transaction queue price #4204
Conversation
@@ -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(); |
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 this lead to sending off an HTTP request every time chain_new_blocks
is called? (potentially multiple times per second)
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.
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.
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.
Yes, I see now, just leaving a comment as I skimmed through it
* Fixing minimal transaction queue price * Fixing tests
* 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)
Closes #4199
Closes #4198