openethereum/ethcore
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
..
benches Fixes bench and removes rustc_serialize dependency (#5988) 2017-10-11 17:39:12 +07:00
evm Returns number of topcis to take fr.. (#8199) 2018-03-23 17:16:20 +09:00
light Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
migrations revert removing blooms (#8066) 2018-03-12 20:15:55 +00:00
node_filter node-filter does not use ChainNotify (#8231) 2018-03-28 11:32:44 +09:00
res Update musicoin spec in line with gmc v2.6.2 (#8242) 2018-03-28 14:11:49 +02:00
service ethcore-service (#8089) 2018-03-13 11:49:57 +01:00
src Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
transaction Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
types Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
vm more dos protection (#8104) 2018-03-14 15:27:56 +03:00
wasm bump wasmi version (#8209) 2018-03-26 16:55:48 +08:00
Cargo.toml Update some of the dependencies for WASM (#8223) 2018-03-27 11:35:51 +09:00