Fix build.
This commit is contained in:
parent
90a20a217f
commit
356aca2db5
@ -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
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -424,7 +424,7 @@ impl BlockChainClient for TestBlockChainClient {
|
|||||||
None
|
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
|
None
|
||||||
}
|
}
|
||||||
fn transaction(&self, _id: TransactionId) -> Option<LocalizedTransaction> {
|
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>;
|
fn nonce(&self, address: &Address, id: BlockId) -> Option<U256>;
|
||||||
|
|
||||||
/// Attempt to get address storage root at given block.
|
/// Attempt to get address storage root at given block.
|
||||||
/// May not fail on BlockID::Latest.
|
/// May not fail on BlockId::Latest.
|
||||||
fn storage_root(&self, address: &Address, id: BlockID) -> Option<H256>;
|
fn storage_root(&self, address: &Address, id: BlockId) -> Option<H256>;
|
||||||
|
|
||||||
/// Get address nonce at the latest block's state.
|
/// Get address nonce at the latest block's state.
|
||||||
fn latest_nonce(&self, address: &Address) -> U256 {
|
fn latest_nonce(&self, address: &Address) -> U256 {
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
use std::sync::{Weak, Arc};
|
use std::sync::{Weak, Arc};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use util::misc::{VersionInfo, ReleaseTrack, platform};
|
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::operations::Operations;
|
||||||
use client::{Client, BlockChainClient, UpdatePolicy, BlockId};
|
use client::{Client, UpdatePolicy, BlockId};
|
||||||
use fetch::HashFetch;
|
use fetch::HashFetch;
|
||||||
use fetch;
|
use fetch;
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ pub struct ExportState {
|
|||||||
pub wal: bool,
|
pub wal: bool,
|
||||||
pub fat_db: Switch,
|
pub fat_db: Switch,
|
||||||
pub tracing: Switch,
|
pub tracing: Switch,
|
||||||
pub at: BlockID,
|
pub at: BlockId,
|
||||||
pub storage: bool,
|
pub storage: bool,
|
||||||
pub code: bool,
|
pub code: bool,
|
||||||
pub min_balance: Option<U256>,
|
pub min_balance: Option<U256>,
|
||||||
|
@ -855,7 +855,7 @@ mod tests {
|
|||||||
wal: true,
|
wal: true,
|
||||||
tracing: Default::default(),
|
tracing: Default::default(),
|
||||||
fat_db: Default::default(),
|
fat_db: Default::default(),
|
||||||
at: BlockID::Latest,
|
at: BlockId::Latest,
|
||||||
storage: true,
|
storage: true,
|
||||||
code: true,
|
code: true,
|
||||||
min_balance: None,
|
min_balance: None,
|
||||||
|
Loading…
Reference in New Issue
Block a user