Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Remove unwrap from client module #2554

Merged
merged 2 commits into from
Oct 10, 2016
Merged

Remove unwrap from client module #2554

merged 2 commits into from
Oct 10, 2016

Conversation

keorn
Copy link

@keorn keorn commented Oct 10, 2016

No description provided.

@keorn keorn added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 10, 2016
@@ -147,13 +147,6 @@ pub struct Client {
/// assume finality of a given candidate.
pub const HISTORY: u64 = 1200;

/// Append a path element to the given path and return the string.
pub fn append_path<P>(path: P, item: &str) -> String where P: AsRef<Path> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't found any uses

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 86.398% when pulling 4bfbab1 on client-unwrap into 271bcf4 on master.

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 10, 2016
@gavofyork gavofyork merged commit 64f6f83 into master Oct 10, 2016
@gavofyork gavofyork deleted the client-unwrap branch October 10, 2016 15:43
continue;
}
let is_invalid = invalid_blocks.contains(header.parent_hash());
if let (false, Ok(closed_block)) = (is_invalid, self.check_and_close_block(&block)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_and_close_block must not be called if invalid_blocks.contains(header.parent_hash())

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, eager eval...

arkpar pushed a commit that referenced this pull request Oct 11, 2016
* remove unwraps in client

* imporve block hash expect message
arkpar added a commit that referenced this pull request Oct 11, 2016
* v1.3.6

* Print backtrace on panic (#2535)

* Don't activate peers on connect; Test (#2537)

* Removing unwarps from sync module (#2551)

* Remove unwrap from client module (#2554)

* remove unwraps in client

* imporve block hash expect message

* mining perf trace

* Fixed race condition in trace import (#2555)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants