Minor build fixes.

This commit is contained in:
Gav Wood
2016-03-13 15:36:03 +01:00
parent 08b9cc2c41
commit 76696e3b49
3 changed files with 5 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ impl<V> Client<V> where V: Verifier {
if !imported_blocks.is_empty() && self.block_queue.queue_info().is_empty() {
let (enacted, retracted) = self.calculate_enacted_retracted(import_results);
io.send(NetworkIoMessage::User(SyncMessage::NewChainBlocks {
good: imported_blocks,
imported: imported_blocks,
invalid: invalid_blocks,
enacted: enacted,
retracted: retracted,

View File

@@ -83,10 +83,12 @@ impl TestBlockChainClient {
client
}
/// Set the balance of account `address` to `balance`.
pub fn set_balance(&mut self, address: Address, balance: U256) {
self.balances.write().unwrap().insert(address, balance);
}
/// Set storage `position` to `value` for account `address`.
pub fn set_storage(&mut self, address: Address, position: H256, value: H256) {
self.storage.write().unwrap().insert((address, position), value);
}