mutableboost::shared_mutexm_lock;///< General lock.
mutableboost::shared_mutexm_lock;///< General lock.
std::set<h256>m_drainingSet;///< All blocks being imported.
h256Hashm_drainingSet;///< All blocks being imported.
std::set<h256>m_readySet;///< All blocks ready for chain-import.
h256Hashm_readySet;///< All blocks ready for chain-import.
std::vector<std::pair<h256,bytes>>m_ready;///< List of blocks, in correct order, ready for chain-import.
std::vector<std::pair<h256,bytes>>m_ready;///< List of blocks, in correct order, ready for chain-import.
std::set<h256>m_unknownSet;///< Set of all blocks whose parents are not ready/in-chain.
h256Hashm_unknownSet;///< Set of all blocks whose parents are not ready/in-chain.
std::multimap<h256,std::pair<h256,bytes>>m_unknown;///< For blocks that have an unknown parent; we map their parent hash to the block stuff, and insert once the block appears.
std::unordered_multimap<h256,std::pair<h256,bytes>>m_unknown;///< For blocks that have an unknown parent; we map their parent hash to the block stuff, and insert once the block appears.
std::set<h256>m_knownBad;///< Set of blocks that we know will never be valid.
h256Hashm_knownBad;///< Set of blocks that we know will never be valid.
std::multimap<unsigned,std::pair<h256,bytes>>m_future;///< Set of blocks that are not yet valid.
std::multimap<unsigned,std::pair<h256,bytes>>m_future;///< Set of blocks that are not yet valid. Ordered by timestamp
Signalm_onReady;///< Called when a subsequent call to import blocks will return a non-empty container. Be nice and exit fast.
Signalm_onReady;///< Called when a subsequent call to import blocks will return a non-empty container. Be nice and exit fast.
// Find great-uncles (or second-cousins or whatever they are) - children of great-grandparents, great-great-grandparents... that were not already uncles in previous generations.
// Find great-uncles (or second-cousins or whatever they are) - children of great-grandparents, great-great-grandparents... that were not already uncles in previous generations.
/// Execute the given block, assuming it corresponds to m_currentBlock.
/// Execute the given block, assuming it corresponds to m_currentBlock.
/// Throws on failure.
/// Throws on failure.
@ -355,10 +354,10 @@ private:
SecureTrieDB<Address,OverlayDB>m_state;///< Our state tree, as an OverlayDB DB.
SecureTrieDB<Address,OverlayDB>m_state;///< Our state tree, as an OverlayDB DB.
Transactionsm_transactions;///< The current list of transactions that we've included in the state.
Transactionsm_transactions;///< The current list of transactions that we've included in the state.
TransactionReceiptsm_receipts;///< The corresponding list of transaction receipts.
TransactionReceiptsm_receipts;///< The corresponding list of transaction receipts.
std::set<h256>m_transactionSet;///< The set of transaction hashes that we've included in the state.
h256Hashm_transactionSet;///< The set of transaction hashes that we've included in the state.
OverlayDBm_lastTx;
OverlayDBm_lastTx;
mutablestd::map<Address,Account>m_cache;///< Our address cache. This stores the states of each address that has (or at least might have) been changed.
mutablestd::unordered_map<Address,Account>m_cache;///< Our address cache. This stores the states of each address that has (or at least might have) been changed.
BlockInfom_previousBlock;///< The previous block's information.
BlockInfom_previousBlock;///< The previous block's information.
BlockInfom_currentBlock;///< The current block's information.
BlockInfom_currentBlock;///< The current block's information.
std::set<h256>m_known;///< Hashes of transactions in both sets.
h256Hashm_known;///< Hashes of transactions in both sets.
std::map<h256,Transaction>m_current;///< Map of SHA3(tx) to tx.
std::unordered_map<h256,Transaction>m_current;///< Map of SHA3(tx) to tx.
std::multimap<Address,std::pair<h256,Transaction>>m_unknown;///< For transactions that have a future nonce; we map their sender address to the tx stuff, and insert once the sender has a valid TX.
std::unordered_multimap<Address,std::pair<h256,Transaction>>m_unknown;///< For transactions that have a future nonce; we map their sender address to the tx stuff, and insert once the sender has a valid TX.
std::map<h256,std::function<void(ImportResult)>>m_callbacks;///< Called once.
std::unordered_map<h256,std::function<void(ImportResult)>>m_callbacks;///< Called once.
std::set<h256>m_dropped;///< Transactions that have previously been dropped.
h256Hashm_dropped;///< Transactions that have previously been dropped.
std::multimap<Address,h256>m_senders;///< Mapping from the sender address to the transaction hash; useful for determining the nonce of a given sender.
std::multimap<Address,h256>m_senders;///< Mapping from the sender address to the transaction hash; useful for determining the nonce of a given sender.
Signalm_onReady;///< Called when a subsequent call to import transactions will return a non-empty container. Be nice and exit fast.
Signalm_onReady;///< Called when a subsequent call to import transactions will return a non-empty container. Be nice and exit fast.