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

eth price in cli should not be displayed for private chains #6228

Closed
debris opened this issue Aug 3, 2017 · 3 comments
Closed

eth price in cli should not be displayed for private chains #6228

debris opened this issue Aug 3, 2017 · 3 comments
Labels
F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M2-config 📂 Chain specifications and node configurations. P7-nicetohave 🐕 Issue is worth doing eventually. Q2-easy 💃 Can be fixed by copy and pasting from StackOverflow.
Milestone

Comments

@debris
Copy link
Collaborator

debris commented Aug 3, 2017

2017-08-04 00:19:29   INFO miner  Updated conversion rate to Ξ1 = US$223.41 (0 wei/gas)
@debris debris added F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M4-core ⛓ Core client code / Rust. Q2-easy 💃 Can be fixed by copy and pasting from StackOverflow. labels Aug 3, 2017
@tomusdrw
Copy link
Collaborator

tomusdrw commented Aug 4, 2017

Actually it's valid only for foundation chain, should probably use some predefined min gas price for all other chains.

@keorn
Copy link

keorn commented Aug 4, 2017

Maybe solve it by Engine specific default configs? A few other issues exist since the defaults are suited to Ethash.

@5chdn
Copy link
Contributor

5chdn commented Aug 4, 2017

+1 for more chain abstraction in the client via config, this could be solved too: #4123

@5chdn 5chdn added M2-config 📂 Chain specifications and node configurations. and removed M4-core ⛓ Core client code / Rust. labels Aug 4, 2017
@5chdn 5chdn added the P7-nicetohave 🐕 Issue is worth doing eventually. label Sep 4, 2017
@5chdn 5chdn added this to the 1.9 milestone Oct 5, 2017
@5chdn 5chdn modified the milestones: 1.9, 1.10 Oct 17, 2017
nicolasochem pushed a commit to nicolasochem/parity that referenced this issue Oct 23, 2017
Current behaviour:

When the client is started with defaults, the miner's gas calibrator
periodically queries the price of ether in usd and uses it to adjust
the wei_per_gas variable, displaying an info message in the cli each
time calibration happens.

This behaviour is also present when running on a non-foundation chain
such as ethereum classic.

When the client is started with --min-gas-price N, this does not happen
as GasPricer::Fixed is instanciated instead of GasPricer::Calibrated.

Solution:

For non-foundation chain, hard-code a default gas price (wei_per_gas,
currently 40M wei) in the spec json file.

When the wei_per_gas parameter is found and greater than zero, force the
miner to start with GasPricer::Fixed, so the calibrator does not run at
all.
nicolasochem pushed a commit to nicolasochem/parity that referenced this issue Oct 23, 2017
Current behaviour:

When the client is started with defaults, the miner's gas calibrator
periodically queries the price of ether in usd and uses it to adjust
the wei_per_gas variable, displaying an info message in the cli each
time calibration happens.

This behaviour is also present when running on a non-foundation chain
such as ethereum classic.

When the client is started with --min-gas-price N, this does not happen
as GasPricer::Fixed is instanciated instead of GasPricer::Calibrated.

Solution:

For non-foundation chain, hard-code a default gas price (wei_per_gas,
currently 40M wei) in the spec json file.

When the wei_per_gas parameter is found and greater than zero, force the
miner to start with GasPricer::Fixed, so the calibrator does not run at
all.
nicolasochem pushed a commit to nicolasochem/parity that referenced this issue Oct 24, 2017
Current behaviour:

When the client is started with defaults, the miner's gas calibrator
periodically queries the price of ether in usd and uses it to adjust
the wei_per_gas variable, displaying an info message in the cli each
time calibration happens. The info message mentions the price of ETH.

When started with the --min-gas-price option, the calibrator is inactive
and the price is not displayed.

Problem:

When running on an alternate chain such as ethereum classic, the info
message mentioning the ETH price is present, unless the --min-gas-price
option is used.

Solution:

if chain != foundation and --min-gas-price is not set,
don't use GasPricerConfig::Calibrated as default but rather fix
the minimum gas price to zero.
nicolasochem pushed a commit to nicolasochem/parity that referenced this issue Oct 24, 2017
Current behaviour:

When the client is started with defaults, the miner's gas calibrator
periodically queries the price of ether in usd and uses it to adjust
the wei_per_gas variable, displaying an info message in the cli each
time calibration happens. The info message mentions the price of ETH.

When started with the --min-gas-price option, the calibrator is inactive
and the price is not displayed.

Problem:

When running on an alternate chain such as ethereum classic, the info
message mentioning the ETH price is present, unless the --min-gas-price
option is used.

Solution:

if chain != foundation and --min-gas-price is not set,
don't use GasPricerConfig::Calibrated as default but rather fix
the minimum gas price to zero.
@arkpar arkpar closed this as completed in 542cee9 Oct 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F3-annoyance 💩 The client behaves within expectations, however this “expected behaviour” itself is at issue. M2-config 📂 Chain specifications and node configurations. P7-nicetohave 🐕 Issue is worth doing eventually. Q2-easy 💃 Can be fixed by copy and pasting from StackOverflow.
Projects
None yet
Development

No branches or pull requests

4 participants