Increasing balance in tests

This commit is contained in:
Tomasz Drwięga 2016-03-17 11:27:38 +01:00
parent 95dda4aa68
commit 0e7778a7b7

View File

@ -403,7 +403,7 @@ impl ChainSync {
self.remove_downloaded_blocks(number + 1); self.remove_downloaded_blocks(number + 1);
} }
if self.have_common_block && number < self.current_base_block() + 1 { if self.have_common_block && number < self.current_base_block() + 1 {
// unkown header // unkown header
debug!(target: "sync", "Old block header {:?} ({}) is unknown, restarting sync", hash, number); debug!(target: "sync", "Old block header {:?} ({}) is unknown, restarting sync", hash, number);
self.restart(io); self.restart(io);
return Ok(()); return Ok(());
@ -1636,7 +1636,7 @@ mod tests {
for h in vec![good_blocks[0], retracted_blocks[0]] { for h in vec![good_blocks[0], retracted_blocks[0]] {
let block = client.block(BlockId::Hash(h)).unwrap(); let block = client.block(BlockId::Hash(h)).unwrap();
let view = BlockView::new(&block); let view = BlockView::new(&block);
client.set_balance(view.transactions()[0].sender().unwrap(), U256::from(10_000)); client.set_balance(view.transactions()[0].sender().unwrap(), U256::from(1_000_000_000));
} }
let mut queue = VecDeque::new(); let mut queue = VecDeque::new();