Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinlesceller committed Jul 16, 2019
1 parent d416644 commit ddb2dcc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions chain/tests/chain_test_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ pub fn mine_chain(dir_name: &str, chain_length: u64) -> Chain {
let mut genesis = genesis::genesis_dev();
let keychain = keychain::ExtKeychain::from_random_seed(false).unwrap();
let key_id = keychain::ExtKeychain::derive_key_id(0, 1, 0, 0, 0);
let reward = reward::output(&keychain, &libtx::ProofBuilder::new(&keychain),&key_id, 0, false).unwrap();
let reward = reward::output(
&keychain,
&libtx::ProofBuilder::new(&keychain),
&key_id,
0,
false,
)
.unwrap();
genesis = genesis.with_reward(reward.0, reward.1);

let mut chain = setup(dir_name, pow::mine_genesis_block().unwrap());
Expand Down Expand Up @@ -89,7 +96,9 @@ where
let prev = chain.head_header().unwrap();
let next_header_info = consensus::next_difficulty(1, chain.difficulty_iter().unwrap());
let pk = ExtKeychainPath::new(1, n as u32, 0, 0, 0).to_identifier();
let reward = libtx::reward::output(keychain, &libtx::ProofBuilder::new(keychain), &pk, 0, false).unwrap();
let reward =
libtx::reward::output(keychain, &libtx::ProofBuilder::new(keychain), &pk, 0, false)
.unwrap();
let mut b =
core::core::Block::new(&prev, vec![], next_header_info.clone().difficulty, reward)
.unwrap();
Expand Down

0 comments on commit ddb2dcc

Please sign in to comment.