openethereum/parity
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
..
cli New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
db Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
light_helpers More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
account.rs
blockchain.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
cache.rs
configuration.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
dapps.rs Enable UI by default, but only display deprecation notice (#8262) 2018-04-10 16:14:15 +02:00
deprecated.rs
export_hardcoded_sync.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
helpers.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
informant.rs More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
ipfs.rs
main.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
modules.rs
params.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
presale.rs
rpc_apis.rs
rpc.rs Enable UI by default, but only display deprecation notice (#8262) 2018-04-10 16:14:15 +02:00
run.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
secretstore.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
signer.rs
snapshot.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
stratum.rs
upgrade.rs
url.rs fixed unsafe shell call on windows (#8372) 2018-04-11 17:21:29 +01:00
user_defaults.rs
whisper.rs