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 Fix #6209 - introduce standalone dir crate 2017-12-26 00:54:34 -08:00
blockchain.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
cache.rs Upgrade to RocksDB 5.8.8 and tune settings to reduce space amplification (#7348) 2018-01-03 11:00:37 +01:00
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 Make CLI arguments parsing more backwards compatible 2017-11-08 12:33:56 +01:00
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 Fix default CORS settings. (#7387) 2017-12-27 18:56:06 +01:00
main.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
modules.rs ethcore-sync (#8347) 2018-04-10 12:13:49 +02:00
params.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
presale.rs Fix #6209 - introduce standalone dir crate 2017-12-26 00:54:34 -08:00
rpc_apis.rs ethcore-sync (#8347) 2018-04-10 12:13:49 +02:00
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 Re-enable signer, even with no UI. (#8167) 2018-03-20 17:57:37 +00:00
snapshot.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
stratum.rs remove the deprecated options in rustfmt.toml (#5616) 2017-05-19 17:12:20 +02:00
upgrade.rs Upgrader remove raw unwrap and bump semver (#8251) 2018-04-04 11:54:41 +02:00
url.rs fixed unsafe shell call on windows (#8372) 2018-04-11 17:21:29 +01:00
user_defaults.rs Refactors parity/parity to use journaldb crate (#6693) 2017-10-17 11:46:54 +07:00
whisper.rs ethcore-sync (#8347) 2018-04-10 12:13:49 +02:00