openethereum/ethcore/src
Andrew Jones a04c5b180a Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316)
* WIP

* Replace Rlp with UntrustedRlp in views, explicity unwrap with expect

First pass to get it to compile. Need to figure out whether to do this or to propogate Errors upstream, which would require many more changes to dependent code. If we do this way we are assuming that the views are always used in a context where the rlp is trusted to be valid e.g. when reading from our own DB. So need to fid out whether views are used with data received from an untrusted (e.g. extrernal peer).

* Remove original Rlp impl, rename UntrustedRlp -> Rlp

* Create rlp views with view! macro to record debug info

Views are assumed to be over valid rlp, so if there is a decoding error we record where the view was created in the first place and report it in the expect

* Use $crate in view! macro to avoid import, fix tests

* Expect valid rlp in decode functions for now

* Replace spaces with tabs in new file

* Add doc tests for creating views with macro

* Update rlp docs to reflect removing of UntrustedRlp

* Replace UntrustedRlp usages in private-tx merge
2018-04-16 15:52:12 +02:00
..
account_provider More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
blockchain Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
blooms revert removing blooms (#8066) 2018-03-12 20:15:55 +00:00
client Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
engines Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
ethereum Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
json_tests Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
miner New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
snapshot Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
spec Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
state Private transactions integration pr (#6422) 2018-04-09 16:14:33 +02:00
tests Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
trace Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
verification Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
views Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
account_db.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
block.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02: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 legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
error.rs More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
executed.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
executive.rs Private transactions integration pr (#6422) 2018-04-09 16:14:33 +02:00
externalities.rs Private transactions integration pr (#6422) 2018-04-09 16:14:33 +02:00
factory.rs Kovan WASM fork code (#7849) 2018-02-19 12:27:42 +01:00
header.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
lib.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
machine.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02: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 Private transactions integration pr (#6422) 2018-04-09 16:14:33 +02:00
test_helpers.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
test_helpers_internal.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
tx_filter.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00