Refactor TxQueue, move some boost includes down to .cpp

This commit is contained in:
Vinnie Falco
2013-09-01 08:03:30 -07:00
parent 4ef0f5d6a9
commit 37216bed4d
17 changed files with 299 additions and 253 deletions

View File

@@ -748,11 +748,11 @@ Transaction::pointer NetworkOPsImp::submitTransactionSync (Transaction::ref tpTr
void NetworkOPsImp::runTransactionQueue ()
{
TXQEntry::pointer txn;
TxQueueEntry::pointer txn;
for (int i = 0; i < 10; ++i)
{
getApp().getTxnQueue ().getJob (txn);
getApp().getTxQueue ().getJob (txn);
if (!txn)
return;
@@ -829,7 +829,7 @@ void NetworkOPsImp::runTransactionQueue ()
}
}
if (getApp().getTxnQueue ().stopProcessing (txn))
if (getApp().getTxQueue ().stopProcessing (txn))
getApp().getIOService ().post (BIND_TYPE (&NetworkOPsImp::runTransactionQueue, this));
}

View File

@@ -9,7 +9,9 @@ class ProofOfWorkFactoryImp
, public LeakChecked <ProofOfWorkFactoryImp>
{
public:
typedef boost::bimap< boost::bimaps::multiset_of<time_t>, boost::bimaps::unordered_set_of<uint256> > powMap_t;
typedef boost::bimap< boost::bimaps::multiset_of<time_t>,
boost::bimaps::unordered_set_of<uint256> > powMap_t;
typedef powMap_t::value_type powMap_vt;
//--------------------------------------------------------------------------