update review

This commit is contained in:
NikVolf 2016-12-09 17:49:02 +01:00
parent 8d9a65a85d
commit e707fd73cb
2 changed files with 2 additions and 37 deletions

View File

@ -1,35 +0,0 @@
use chain;
use indexed_block::IndexedBlock;
use transaction_meta::TransactionMeta;
struct TransactionData {
// parent transaction for each input
parents: Vec<chain::Transaction>,
// meta of parent transaction for each input
meta: Vec<TransactionMeta>,
}
impl TransactionData {
fn collect(transaction: &chain::Tranaction) -> TransactionData {
}
}
struct ExpandedBlock {
block: IndexedBlock,
// guaranteed to be the same length as block.transactions()
transactions_data: Vec<TransactionData>,
}
impl ExpandedBlock {
fn new(block: IndexedBlock) -> Self {
ExpandedBlock {
block: block,
transactions_data: HashMap::new(),
}
}
}

View File

@ -14,8 +14,8 @@ const COINBASE_MATURITY: u32 = 100; // 2 hours
const MAX_BLOCK_SIGOPS: usize = 20000;
const MAX_BLOCK_SIZE: usize = 1000000;
const TRANSACTIONS_VERIFY_THREADS: usize = 4;
const TRANSACTIONS_VERIFY_PARALLEL_THRESHOLD: usize = 16;
const TRANSACTIONS_VERIFY_THREADS: usize = 8;
const TRANSACTIONS_VERIFY_PARALLEL_THRESHOLD: usize = 32;
pub struct ChainVerifier {
store: db::SharedStore,