-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Blockchain tests and some helpers for guarding temp directory #256
Conversation
@@ -32,6 +33,18 @@ impl Drop for RandomTempPath { | |||
} | |||
} | |||
|
|||
#[allow(dead_code)] |
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.
#cfg[test]
instead?
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.
nah, it's already in test space
header.extra_data = match extra { | ||
Some(extra_data) => extra_data, | ||
None => { | ||
let base = (order & 0x000000ff) as u8; |
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.
indentation
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.
where? looks good from here )
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.
Not aligned with the next line:)
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.
pretty aligned to me :)
let bc = BlockChain::new( | ||
&create_unverifiable_block( | ||
0, | ||
H256::from_str("0000000000000000000000000000000000000000000000000000000000000000").unwrap()), |
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.
Maybe there should be H256::zero()
like we have for U256
?
result: client | ||
} | ||
} | ||
|
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.
superfluous line
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.
resolved
Blockchain tests and some helpers for guarding temp directory
No description provided.