openethereum/util
Andrew Jones e3f7b70c38 Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233)
* Replace Rlp with UntrustedRlp and unsafely unwrap

All Rlp methods return Result<_,DecoderError> now, so for this first
pass each will be marked with `expect("TODO")`. In the next pass we can
categorise figure out how to handle each case.

* Handle DecoderError for tendermint message

* Unwrap rlp results in TestBlockcChainClient

Rlp should be valid since created manually in tests

* Replace `use rlp::*` with explicit imports

* Remove rlp decode unwraps from light cli request

* Structured rlp encoding for curr best and latest in header chain

* Propogate decoder errors from send_packet

* Fix body uncles rlp index

* Use BodyView in sync and `expect` rlp errors

* Revert bbf28f removing original Rlp for this phase

This can be done again in the next phase, in order that we can leave the ethcore views unchanged

* Restore legacy Rlp and UntrustedRlp

Use legacy Rlp for ethcore views. Will redo replacing Rlp with UntrustedRlp in  a subsequent PR

* Fix tests

* Replace boilerplate Encodable/Decodable with derive

* Use BlockView instead of Rlp, remove unwrap

* Remove rlp test_cli unwraps by using BlockView instead of Rlp directly

* Remove unneccesary change to use borrowed hash

* Construct sync block using new_from_header_and_body
2018-03-29 11:19:45 +02:00
..
bloom Problem: Cargo.toml file contains [project] key (#7346) 2017-12-20 16:41:52 +01:00
bloomchain revert removing blooms (#8066) 2018-03-12 20:15:55 +00:00
bytes prepare cargo configuration for upload of crates 2017-11-10 18:31:31 +01:00
dir ethabi version 5 (#7723) 2018-02-09 09:32:06 +01:00
error ethabi version 5 (#7723) 2018-02-09 09:32:06 +01:00
fetch Replace reqwest with hyper (#8099) 2018-03-14 13:40:54 +01:00
hash ethabi version 5 (#7723) 2018-02-09 09:32:06 +01:00
hashdb Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
io Bump master to 1.11.0 (#8021) 2018-03-03 22:02:33 +01:00
journaldb rename DatabaseValueView::new to from_rlp (#8159) 2018-03-20 03:02:07 +01:00
kvdb Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
kvdb-memorydb simplify compression and move it out of rlp crate (#7957) 2018-02-23 10:12:52 +01:00
kvdb-rocksdb Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
macros Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
memory_cache Uses dash instead of underscore in crate name 2017-10-16 11:05:54 +07:00
memorydb Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
migration removed old migrations (#7974) 2018-02-22 14:53:10 +01:00
network fix typo (#8124) 2018-03-15 18:49:43 +03:00
network-devp2p Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
panic_hook Moved panick_hook to util/panic_hook (#7629) 2018-01-20 20:28:25 +01:00
path splitting part of util into smaller crates (#4956) 2017-03-22 06:23:40 +01:00
patricia_trie Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
plain_hasher ethabi version 5 (#7723) 2018-02-09 09:32:06 +01:00
reactor Expose health status over RPC (#6274) 2017-08-28 14:11:55 +02:00
rlp Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
rlp_compress Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01:00
rlp_derive update serde, serde-derive, ethabi-derive, syn, quote and rlp_derive (#8085) 2018-03-13 12:43:24 +01:00
stats Expose default gas price percentile configuration in CLI (#7497) 2018-01-09 12:43:36 +01:00
stop-guard Moved StopGaurd to it's own crate (#7635) 2018-01-19 13:46:31 +01:00
table Squash remaining warnings (#6789) 2017-10-16 12:31:52 +02:00
trace-time Remove the time dependency where possible (#8100) 2018-03-14 12:29:52 +01:00
trie-standardmap bring back trie and triehash benches (#7926) 2018-02-19 12:03:54 +01:00
triehash Avoid allocations when computing triehash. (#8176) 2018-03-22 09:24:46 +01: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
version Postpone Kovan hard fork (#8137) 2018-03-19 11:23:12 +01:00