Refactor UniqueNodeList into IUniqueNodeList

This commit is contained in:
Vinnie Falco
2013-06-02 11:17:46 -07:00
parent 0581cf61e5
commit fb487bdb41
15 changed files with 282 additions and 267 deletions

View File

@@ -8,7 +8,6 @@
#include "../database/database.h"
#include "LedgerMaster.h"
#include "UniqueNodeList.h"
#include "ConnectionPool.h"
#include "FeatureTable.h"
#include "LedgerAcquire.h"
@@ -33,6 +32,7 @@ class IFeatureTable;
class IFeeVote;
class ILoadFeeTrack;
class IValidations;
class IUniqueNodeList;
class RPCDoor;
class PeerDoor;
@@ -47,7 +47,6 @@ class Application
boost::recursive_mutex mMasterLock;
Wallet mWallet;
UniqueNodeList mUNL;
LedgerMaster mLedgerMaster;
LedgerAcquireMaster mMasterLedgerAcquire;
TransactionMaster mMasterTransaction;
@@ -67,6 +66,7 @@ class Application
beast::ScopedPointer <IFeeVote> mFeeVote;
beast::ScopedPointer <ILoadFeeTrack> mFeeTrack;
beast::ScopedPointer <IValidations> mValidations;
beast::ScopedPointer <IUniqueNodeList> mUNL;
// VFALCO: End Clean stuff
FeatureTable mFeatureTable;
@@ -102,7 +102,7 @@ public:
ConnectionPool& getConnectionPool() { return mConnectionPool; }
UniqueNodeList& getUNL() { return mUNL; }
IUniqueNodeList& getUNL() { return *mUNL; }
Wallet& getWallet() { return mWallet ; }
NetworkOPs& getOPs() { return mNetOps; }