Fix build.
This commit is contained in:
@@ -385,7 +385,7 @@ impl BlockChainClient for TestBlockChainClient {
|
||||
}
|
||||
}
|
||||
|
||||
fn storage_root(&self, _address: &Address, _id: BlockID) -> Option<H256> {
|
||||
fn storage_root(&self, _address: &Address, _id: BlockId) -> Option<H256> {
|
||||
None
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ impl BlockChainClient for TestBlockChainClient {
|
||||
None
|
||||
}
|
||||
|
||||
fn list_storage(&self, _id: BlockID, _account: &Address, _after: Option<&H256>, _count: u64) -> Option<Vec<H256>> {
|
||||
fn list_storage(&self, _id: BlockId, _account: &Address, _after: Option<&H256>, _count: u64) -> Option<Vec<H256>> {
|
||||
None
|
||||
}
|
||||
fn transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
|
||||
|
||||
@@ -69,8 +69,8 @@ pub trait BlockChainClient : Sync + Send {
|
||||
fn nonce(&self, address: &Address, id: BlockId) -> Option<U256>;
|
||||
|
||||
/// Attempt to get address storage root at given block.
|
||||
/// May not fail on BlockID::Latest.
|
||||
fn storage_root(&self, address: &Address, id: BlockID) -> Option<H256>;
|
||||
/// May not fail on BlockId::Latest.
|
||||
fn storage_root(&self, address: &Address, id: BlockId) -> Option<H256>;
|
||||
|
||||
/// Get address nonce at the latest block's state.
|
||||
fn latest_nonce(&self, address: &Address) -> U256 {
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
use std::sync::{Weak, Arc};
|
||||
use std::path::PathBuf;
|
||||
use util::misc::{VersionInfo, ReleaseTrack, platform};
|
||||
use util::{Bytes, Address, H160, H256, FixedHash, Mutex};
|
||||
use util::{Address, H160, H256, FixedHash, Mutex};
|
||||
use client::operations::Operations;
|
||||
use client::{Client, BlockChainClient, UpdatePolicy, BlockId};
|
||||
use client::{Client, UpdatePolicy, BlockId};
|
||||
use fetch::HashFetch;
|
||||
use fetch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user