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

@@ -163,6 +163,7 @@ public:
, mSLECache ("LedgerEntryCache", 4096, 120)
, mSNTPClient (m_auxService)
// VFALCO New stuff
, m_txQueue (TxQueue::New ())
, m_nodeStore (NodeStore::New (
getConfig ().nodeDatabase,
getConfig ().ephemeralNodeDatabase,
@@ -272,9 +273,9 @@ public:
return *m_loadManager;
}
TXQueue& getTxnQueue ()
TxQueue& getTxQueue ()
{
return mTxnQueue;
return *m_txQueue;
}
OrderBookDB& getOrderBookDB ()
@@ -684,12 +685,12 @@ private:
SLECache mSLECache;
SNTPClient mSNTPClient;
JobQueue mJobQueue;
TXQueue mTxnQueue;
OrderBookDB mOrderBookDB;
// VFALCO Clean stuff
ScopedPointer <SSLContext> m_peerSSLContext;
ScopedPointer <SSLContext> m_wsSSLContext;
ScopedPointer <TxQueue> m_txQueue;
ScopedPointer <NodeStore> m_nodeStore;
ScopedPointer <Validators> m_validators;
ScopedPointer <IFeatures> mFeatures;