openethereum/ethcore/src
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
..
account_provider Fix wallet import (#7873) 2018-02-14 14:21:58 +01:00
blockchain Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
blooms revert removing blooms (#8066) 2018-03-12 20:15:55 +00:00
client Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
engines Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
ethereum Replace std::env::temp_dir with tempdir in tests (#8103) 2018-03-14 12:26:20 +01:00
json_tests Replace std::env::temp_dir with tempdir in tests (#8103) 2018-03-14 12:26:20 +01:00
miner Replace reqwest with hyper (#8099) 2018-03-14 13:40:54 +01:00
snapshot Replace std::env::temp_dir with tempdir in tests (#8103) 2018-03-14 12:26:20 +01:00
spec Implement hardcoded sync in the light client (#8075) 2018-03-27 13:56:59 +02:00
state Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
tests ethcore test::helpers cleanup (#8086) 2018-03-12 18:05:52 +01:00
trace Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
verification Remove the time dependency where possible (#8100) 2018-03-14 12:29:52 +01:00
views Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
account_db.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
block.rs ethcore test::helpers cleanup (#8086) 2018-03-12 18:05:52 +01:00
builtin.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
cache_manager.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
db.rs Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
encoded.rs Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
error.rs bloom refactor (#7475) 2018-01-14 22:43:28 +01:00
executed.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
executive.rs ethcore test::helpers cleanup (#8086) 2018-03-12 18:05:52 +01:00
externalities.rs ethcore test::helpers cleanup (#8086) 2018-03-12 18:05:52 +01:00
factory.rs Kovan WASM fork code (#7849) 2018-02-19 12:27:42 +01:00
header.rs Replace all Rlp usages with UntrustedRlp except for ethcore views (#8233) 2018-03-29 11:19:45 +02:00
lib.rs Replace reqwest with hyper (#8099) 2018-03-14 13:40:54 +01:00
machine.rs ethcore test::helpers cleanup (#8086) 2018-03-12 18:05:52 +01:00
pod_account.rs removed redundant PodAccount::new method (#7928) 2018-02-19 10:58:04 +01:00
pod_state.rs clean up account fmt::Debug (#7983) 2018-02-27 18:37:36 +01:00
state_db.rs Some tiny modifications. (#8163) 2018-03-20 15:46:03 +01:00
tx_filter.rs fixed ethcore tx_filter (#8200) 2018-03-28 10:59:16 +01:00