-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update a few parity-common dependencies #9663
Conversation
…mon-deps * origin/master: ethereum libfuzzer integration small change (#9547) cli: remove reference to --no-ui in --unlock flag help (#9616) remove master from releasable branches (#9655) ethcore/VerificationQueue don't spawn up extra `worker-threads` when explictly specified not to (#9620) RPC: parity_getBlockReceipts (#9527) Remove unused dependencies (#9589) ignore key_server_cluster randomly failing tests (#9639) ethcore: handle vm exception when estimating gas (#9615) fix bad-block reporting no reason (#9638) Use static call and apparent value transfer for block reward contract code (#9603) HF in POA Sokol (2018-09-19) (#9607) bump smallvec to 0.6 in ethcore-light, ethstore and whisper (#9588) Add constantinople conf to EvmTestClient. (#9570)
@@ -210,7 +205,7 @@ fn test_errors() { | |||
assert_eq!(DisconnectReason::Unknown, r); | |||
|
|||
match *<Error as From<rlp::DecoderError>>::from(rlp::DecoderError::RlpIsTooBig).kind() { | |||
ErrorKind::Auth => {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice; I was pretty baffled by the Auth
error, didn't really make sense.
@debris unfortunately it looks like we now have a new error in |
I'm working on it |
let result = SyncHandler::on_peer_new_block(&mut sync, &mut io, 0, &block); | ||
|
||
assert!(result.is_ok()); | ||
SyncHandler::on_peer_new_block(&mut sync, &mut io, 0, &block).expect("result to be ok"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd prefer using an assert here like before: it's easier to spot what the test is doing if I can scan the code and look for the assert
. Just a personal preference, but yeah, please consider it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem with assert!(result.is_ok()
is that it gives no information what went wrong. It will report only expected true to be equal false
, whereas expect
will use fmt::Debug
to print unwrapped error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, didn't think about that. Fine by me then.
@@ -1183,7 +1183,7 @@ pub mod tests { | |||
} | |||
|
|||
pub fn get_dummy_blocks(order: u32, parent_hash: H256) -> Bytes { | |||
let mut rlp = RlpStream::new_list(1); | |||
let mut rlp = RlpStream::new_list(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this was it? Our test was wrong the whole time? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes :(
…mon-deps * origin/master: CI: Remove unnecessary pipes (#9681) test.sh: use cargo --target for platforms other than linux, win or mac (#9650) ci: fix push script (#9679) Hardfork the testnets (#9562) Calculate sha3 instead of sha256 for push-release. (#9673) ethcore-io retries failed work steal (#9651) fix(light_fetch): avoid race with BlockNumber::Latest (#9665) Test fix for windows cache name... (#9658) refactor(fetch) : light use only one `DNS` thread (#9647)
…arity-ethereum into dp/chore/update-common-deps * 'dp/chore/update-common-deps' of github.com:paritytech/parity-ethereum: fix util function get_dummy_blocks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the plan is to merge paritytech/parity-common#67 first with proper versions (w/o beta), should we put this on ice to avoid accidental merge?
util/journaldb/src/overlaydb.rs
Outdated
@@ -112,6 +112,7 @@ impl OverlayDB { | |||
return Err(error_negatively_reference_hash(&key)); | |||
} | |||
let payload = Payload::new(total_rc as u32, x.value); | |||
// let payload = Payload::new(total_rc as u32, x.value.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out code
@ordian sure, good idea. Feel free to review anyway ofc. |
…mon-deps * origin/master: fix (light/provider) : Make `read_only executions` read-only (#9591) ethcore: fix detection of major import (#9552) return 0 on error (#9705) ethcore: delay ropsten hardfork (#9704) make instantSeal engine backwards compatible, closes #9696 (#9700) Implement CREATE2 gas changes and fix some potential overflowing (#9694) Don't hash the init_code of CREATE. (#9688) ethcore: minor optimization of modexp by using LR exponentiation (#9697) removed redundant clone before each block import (#9683)
ethcore/Cargo.toml
Outdated
hashdb = "0.2.1" | ||
memorydb = "0.2.1" | ||
patricia-trie = "0.2" | ||
hashdb = "0.3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why double space before =
here and below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I can't grep so well. Sigh. Fixing.
* Update a few parity-common dependencies * cleanup * cleanup * revert update of ethereum/tests * better reporting of network rlp errors * Use rlp 0.3.0-beta.1 * fix util function get_dummy_blocks * Already a Vec * encode_list returns vec already * Address grumble * No need for betas * Fix double spaces
* bump stable to 2.1.10 * RPC: parity_getBlockReceipts (#9527) * Block receipts RPC. * Use lazy evaluation of block receipts (ecrecover). * Optimize transaction_receipt to prevent performance regression. * Fix RPC grumbles. * Add block & transaction receipt tests. * Fix conversion to block id. * Update a few parity-common dependencies (#9663) * Update a few parity-common dependencies * cleanup * cleanup * revert update of ethereum/tests * better reporting of network rlp errors * Use rlp 0.3.0-beta.1 * fix util function get_dummy_blocks * Already a Vec * encode_list returns vec already * Address grumble * No need for betas * Fix double spaces * Fix empty steps (#9939) * Don't send empty step twice or empty step then block. * Perform basic validation of locally sealed blocks. * Don't include empty step twice. * Strict empty steps validation (#10041) * Add two failings tests for strict empty steps. * Implement strict validation of empty steps. * ethcore: enable constantinople on ethereum (#10031) * ethcore: change blockreward to 2e18 for foundation after constantinople * ethcore: delay diff bomb by 2e6 blocks for foundation after constantinople * ethcore: enable eip-{145,1014,1052,1283} for foundation after constantinople * Change test miner max memory to malloc reports. (#10024) * Bump crossbeam. (#10048) * Revert "Bump crossbeam. (#10048)" This reverts commit ed1db0c.
Update
parity-ethereum
to use the latest hashdb, rlp, memorydb and patricia_trie crates. While the PR touch many files, the relevant changes are:ElasticArrayXXX
toVec<u8>
hashdb::DBValue
is gone and replaced withkvdb::DBValue
(wrapper forElasticArray128<u8>
for the time being)Related to paritytech/parity-common#67
A (rather big) caveat to this PR is that recent correctness fixes in
rlp
broke tests inutil/network-devp2p
. The commits are:util/network-devp2p/src/discovery.rs
Work is under way to fix the errors and should not stop reviewers.