some merge bugs
This commit is contained in:
parent
b873d3befb
commit
b58754cd26
@ -47,26 +47,10 @@ use error::{ImportResult, ExecutionError};
|
|||||||
use receipt::LocalizedReceipt;
|
use receipt::LocalizedReceipt;
|
||||||
use trace::LocalizedTrace;
|
use trace::LocalizedTrace;
|
||||||
use evm::Factory as EvmFactory;
|
use evm::Factory as EvmFactory;
|
||||||
<<<<<<< HEAD
|
|
||||||
use miner::{TransactionImportResult};
|
|
||||||
pub use types::call_analytics::CallAnalytics;
|
pub use types::call_analytics::CallAnalytics;
|
||||||
pub use types::block_import_error::BlockImportError;
|
|
||||||
=======
|
|
||||||
pub use block_import_error::BlockImportError;
|
pub use block_import_error::BlockImportError;
|
||||||
pub use transaction_import::{TransactionImportResult, TransactionImportError};
|
pub use transaction_import::{TransactionImportResult, TransactionImportError};
|
||||||
|
|
||||||
/// Options concerning what analytics we run on the call.
|
|
||||||
#[derive(Eq, PartialEq, Default, Clone, Copy, Debug)]
|
|
||||||
pub struct CallAnalytics {
|
|
||||||
/// Make a transaction trace.
|
|
||||||
pub transaction_tracing: bool,
|
|
||||||
/// Make a VM trace.
|
|
||||||
pub vm_tracing: bool,
|
|
||||||
/// Make a diff.
|
|
||||||
pub state_diffing: bool,
|
|
||||||
}
|
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
/// Blockchain database client. Owns and manages a blockchain and a block queue.
|
/// Blockchain database client. Owns and manages a blockchain and a block queue.
|
||||||
pub trait BlockChainClient : Sync + Send {
|
pub trait BlockChainClient : Sync + Send {
|
||||||
/// Get raw block header data by block id.
|
/// Get raw block header data by block id.
|
||||||
@ -157,7 +141,7 @@ pub trait BlockChainClient : Sync + Send {
|
|||||||
fn queue_info(&self) -> BlockQueueInfo;
|
fn queue_info(&self) -> BlockQueueInfo;
|
||||||
|
|
||||||
/// Clear block queue and abort all import activity.
|
/// Clear block queue and abort all import activity.
|
||||||
fn clear_queue(&self) -> bool;
|
fn clear_queue(&self);
|
||||||
|
|
||||||
/// Get blockchain information.
|
/// Get blockchain information.
|
||||||
fn chain_info(&self) -> BlockChainInfo;
|
fn chain_info(&self) -> BlockChainInfo;
|
||||||
@ -194,14 +178,10 @@ pub trait BlockChainClient : Sync + Send {
|
|||||||
fn last_hashes(&self) -> LastHashes;
|
fn last_hashes(&self) -> LastHashes;
|
||||||
|
|
||||||
/// import transactions from network/other 3rd party
|
/// import transactions from network/other 3rd party
|
||||||
<<<<<<< HEAD
|
|
||||||
fn import_transactions(&self, transactions: Vec<SignedTransaction>) -> Vec<Result<TransactionImportResult, String>>;
|
|
||||||
=======
|
|
||||||
fn import_transactions(&self, transactions: Vec<SignedTransaction>) -> Vec<Result<TransactionImportResult, TransactionImportError>>;
|
fn import_transactions(&self, transactions: Vec<SignedTransaction>) -> Vec<Result<TransactionImportResult, TransactionImportError>>;
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
/// Queue transactions for importing.
|
/// Queue transactions for importing.
|
||||||
fn queue_transactions(&self, transactions: Vec<Bytes>) -> bool;
|
fn queue_transactions(&self, transactions: Vec<Bytes>);
|
||||||
|
|
||||||
/// list all transactions
|
/// list all transactions
|
||||||
fn pending_transactions(&self) -> Vec<SignedTransaction>;
|
fn pending_transactions(&self) -> Vec<SignedTransaction>;
|
||||||
|
@ -90,11 +90,7 @@ use util::hash::{Address, H256};
|
|||||||
use util::table::*;
|
use util::table::*;
|
||||||
use transaction::*;
|
use transaction::*;
|
||||||
use error::{Error, TransactionError};
|
use error::{Error, TransactionError};
|
||||||
<<<<<<< HEAD
|
|
||||||
pub use types::transaction_import_result::TransactionImportResult;
|
|
||||||
=======
|
|
||||||
use client::TransactionImportResult;
|
use client::TransactionImportResult;
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
/// Transaction origin
|
/// Transaction origin
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
|
@ -145,7 +145,7 @@ impl<K, V> BinaryConvertable for BTreeMap<K, V> where K : BinaryConvertable + Or
|
|||||||
0 => mem::size_of::<K>() * self.len(),
|
0 => mem::size_of::<K>() * self.len(),
|
||||||
_ => self.iter().fold(0usize, |acc, (k, _)| acc + k.size())
|
_ => self.iter().fold(0usize, |acc, (k, _)| acc + k.size())
|
||||||
} + match V::len_params() {
|
} + match V::len_params() {
|
||||||
0 => mem::size_of::<V>() * self.len(), 0 => mem::size_of::<V>() * self.len(),
|
0 => mem::size_of::<V>() * self.len(),
|
||||||
_ => self.iter().fold(0usize, |acc, (_, v)| acc + v.size())
|
_ => self.iter().fold(0usize, |acc, (_, v)| acc + v.size())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user