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

Blockchain tests and some helpers for guarding temp directory #256

Merged
merged 18 commits into from
Jan 29, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Jan 28, 2016

No description provided.

@NikVolf NikVolf changed the title Blockchain tests Blockchain tests and some helpers for guarding temp directory Jan 28, 2016
@@ -32,6 +33,18 @@ impl Drop for RandomTempPath {
}
}

#[allow(dead_code)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

#cfg[test] instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nah, it's already in test space

header.extra_data = match extra {
Some(extra_data) => extra_data,
None => {
let base = (order & 0x000000ff) as u8;
Copy link
Collaborator

Choose a reason for hiding this comment

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

indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

where? looks good from here )

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not aligned with the next line:)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pretty aligned to me :)

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Jan 28, 2016
let bc = BlockChain::new(
&create_unverifiable_block(
0,
H256::from_str("0000000000000000000000000000000000000000000000000000000000000000").unwrap()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe there should be H256::zero() like we have for U256?

@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 28, 2016
result: client
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

superfluous line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

resolved

@NikVolf NikVolf added A0-pleasereview 🤓 Pull request needs code review. and removed A8-looksgood 🦄 Pull request is reviewed well. labels Jan 28, 2016
@arkpar arkpar added the A8-looksgood 🦄 Pull request is reviewed well. label Jan 28, 2016
@arkpar arkpar removed the A0-pleasereview 🤓 Pull request needs code review. label Jan 28, 2016
gavofyork pushed a commit that referenced this pull request Jan 29, 2016
Blockchain tests and some helpers for guarding temp directory
@gavofyork gavofyork merged commit b5d7828 into master Jan 29, 2016
@NikVolf NikVolf deleted the blockchain-tests branch January 29, 2016 15:37
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants