openethereum/util
Marek Kotewicz a257827f27 backports to beta (#7434)
* Merge pull request #7368 from paritytech/td-future-blocks

Wait for future blocks in AuRa

* Fix tracing failed calls.

* Problem: sending any Whisper message fails

The error is "PoW too low to compete with other messages"

This has been previously reported in #7144

Solution: prevent the move semantics

The source of the error is in PoolHandle.relay
implementation for NetPoolHandle.

Because of the move semantics, `res` variable is in fact
copied (as it implements Copy) into the closure and for
that reason, the returned result is always `false.

* Merge pull request #7433 from paritytech/td-strict-config

Strict config parsing

* Problem: AuRa's unsafeties around step duration (#7282)

Firstly, `Step.duration_remaining` casts it to u32, unnecesarily
limiting it to 2^32. While theoretically this is "good enough" (at 3
seconds steps it provides room for a little over 400 years), it is
still a lossy way to calculate the remaining time until the next step.

Secondly, step duration might be zero, triggering division by zero
in `Step.calibrate`

Solution: rework the code around the fact that duration is
typically in single digits and never grows, hence, it can be represented
by a much narrower range (u16) and this highlights the fact that
multiplying u64 by u16 will only result in an overflow in even further
future, at which point we should panic informatively (if anybody's
still around)

Similarly, panic when it is detected that incrementing the step
counter wrapped around on the overflow of usize.

As for the division by zero, prevent it by making zero an invalid
value for step duration. This will make AuRa log the constraint
mismatch and panic (after all, what purpose would zero step duration
serve? it makes no sense within the definition of the protocol,
as finality can only be achieved as per the specification
if messages are received within the step duration, which would violate
the speed of light and other physical laws in this case).

* Merge pull request #7437 from paritytech/a5-chains-expanse

Remove expanse chain

* Expanse Byzantium update w/ correct metropolis difficulty increment divisor (#7463)

* Byzantium Update for Expanse

Here the changes go. Hope I didnt miss anything.

* expip2 changes - update duration limit

* Fix missing EXPIP-2 fields

* Format numbers as hex

* Fix compilation errors

* Group expanse chain spec fields together

* Set metropolisDifficultyIncrementDivisor for Expanse

* Revert #7437

* Add Expanse block 900_000 hash checkpoint

* Advance AuRa step as far as we can and prevent invalid blocks. (#7451)

* Advance AuRa step as far as we can.

* Wait for future blocks.

* fixed panic when io is not available for export block, closes #7486 (#7495)

* Update Parity Mainnet Bootnodes (#7476)

* Update Parity Mainnet Bootnodes

* Replace the Azure HDD bootnodes with the new ones :)

* Use https connection (#7503)

Use https when connecting to etherscan.io API for price-info

* Expose default gas price percentile configuration in CLI (#7497)

* Expose gas price percentile.

* Fix light eth_call.

* fix gas_price in light client
2018-01-09 13:55:10 +01:00
..
benches rename trie to patricia-trie 2017-09-15 11:49:26 +08:00
bigint commit plain_hasher to util 2017-08-28 12:40:29 +02:00
bloom add more hash backward compatibility test for bloom (#6425) 2017-08-31 14:50:06 +02:00
bloomable Hashable::sha3 -> fn keccak for ethcore-util 2017-08-30 16:20:21 +02:00
bytes separate trie from util and make its dependencies into libs: 2017-09-15 11:03:53 +08:00
error Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
fetch Update jsonrpc dependencies and rewrite dapps to futures. (#6522) 2017-10-05 12:35:01 +02:00
hash Fixed build warnings (#6664) 2017-10-11 09:55:10 +02:00
hashdb separate trie from util and make its dependencies into libs: 2017-09-15 11:03:53 +08:00
io Bumped version 2017-07-13 15:52:01 +02:00
kvdb Merge pull request #6720 from paritytech/kvdb_split 2018-01-03 13:22:31 +00:00
kvdb-memorydb Merge pull request #6720 from paritytech/kvdb_split 2018-01-03 13:22:31 +00:00
kvdb-rocksdb Upgrade to RocksDB 5.8.8 and tune settings to reduce space amplification (#7348) 2018-01-03 13:40:58 +00:00
macros Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
memorydb separate trie from util and make its dependencies into libs: 2017-09-15 11:03:53 +08:00
migration Upgrade to RocksDB 5.8.8 and tune settings to reduce space amplification (#7348) 2018-01-03 13:40:58 +00:00
network Removes rustc-serialize references from Cargo.toml and Cargo.lock 2017-10-11 22:01:00 +07:00
path splitting part of util into smaller crates (#4956) 2017-03-22 06:23:40 +01:00
patricia_trie Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
plain_hasher commit plain_hasher to util 2017-08-28 12:40:29 +02:00
reactor Expose health status over RPC (#6274) 2017-08-28 14:11:55 +02:00
rlp replace sha3 with keccak in few comments 2017-08-31 15:25:30 +02:00
rlp_derive rlp_derive (#6125) 2017-08-20 12:01:46 +08:00
semantic_version separate semantic_version from util (#6438) 2017-09-02 13:14:21 +02:00
snappy Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
src Merge pull request #6720 from paritytech/kvdb_split 2018-01-03 13:22:31 +00:00
stats backports to beta (#7434) 2018-01-09 13:55:10 +01:00
table Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
triehash triehash is separated from util (#6428) 2017-09-03 09:11:14 +02:00
unexpected UtilError uses error_chain!, moved OutOfBounds and Mismatched to unexpected crate 2017-09-05 12:14:03 +02:00
using_queue Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
build.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
Cargo.toml Bump beta to 1.8.6 (#7442) 2018-01-04 09:32:38 +01:00