openethereum/parity
Rakan Alhneiti 6993ec9531 Use provided usd-per-eth value if an endpoint is specified (#11209)
* Fix `invalid transaction price` error message

* Setup Calibrated GasPriceConfig when usd-per-eth is an endpoint

The change will try to check if the specified value is an endpoint.
If the value of `auto` is specified, the default endpoint URL will be used
otherwise, the user-provided value will be taken as-is for an endpoint.

* Use if-let and check for usd-per-eth arg:

1. auto = use etherscan
2. value = use fixed pricer
3. endpoint = use the provided endpoint as-is

* Fix typo in to_pricce error message

* Correct whitespace indentation

* Use arg_usd_per_eth directly
2019-10-29 12:18:30 +01:00
..
cli cli: update usage and version headers (#10924) 2019-09-05 16:07:26 +02:00
db fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
light_helpers fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
logger Update kvdb, kvdb-rocksdb and h2 (#11091) 2019-09-27 23:29:14 +02:00
account_utils.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
account.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
blockchain.rs [informant]: MillisecondDuration -> as_millis() (#11211) 2019-10-28 15:03:28 +01:00
cache.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
configuration.rs Use provided usd-per-eth value if an endpoint is specified (#11209) 2019-10-29 12:18:30 +01:00
deprecated.rs whisper is no longer a part of parity-ethereum repo (#10855) 2019-07-12 14:15:30 +02:00
export_hardcoded_sync.rs [export hardcoded sync]: use debug for H256 (#11204) 2019-10-25 18:12:14 +02:00
helpers.rs Use provided usd-per-eth value if an endpoint is specified (#11209) 2019-10-29 12:18:30 +01:00
informant.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
ipfs.rs fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
lib.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
main.rs parity/main.rs uses eprintln instead of raw stderr interface (#10427) 2019-02-27 11:41:03 +03:00
modules.rs Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
params.rs Use provided usd-per-eth value if an endpoint is specified (#11209) 2019-10-29 12:18:30 +01:00
presale.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
rpc_apis.rs Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
rpc.rs update jsonrpc to 12.0 (#10841) 2019-07-05 16:24:23 +08:00
run.rs Pause pruning while snapshotting (#11178) 2019-10-24 16:46:32 +02:00
secretstore.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
signer.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
snapshot_cmd.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
stratum.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
upgrade.rs Add message to IO errors (#10324) 2019-02-18 20:39:38 +03:00
user_defaults.rs Extract the Engine trait (#10958) 2019-08-15 17:59:22 +02:00