diff --git a/Application.h b/Application.h index b8929e5cf9..17dba67653 100644 --- a/Application.h +++ b/Application.h @@ -7,7 +7,9 @@ #include "TimingService.h" #include "PubKeyCache.h" #include "ScopedLock.h" +#include "LedgerMaster.h" #include "Wallet.h" +#include "Peer.h" #include "database/database.h" #include @@ -15,7 +17,6 @@ class RPCDoor; class PeerDoor; - class Application { TimingService mTimingService; @@ -23,14 +24,17 @@ class Application KnownNodeList mKnownNodes; Wallet mWallet; PubKeyCache mPKCache; + LedgerMaster mMasterLedger; Database* mDatabase; - ConnectionPool mConnectionPool; PeerDoor* mPeerDoor; RPCDoor* mRPCDoor; //Serializer* mSerializer; + std::map mPeerMap; + boost::recursive_mutex mPeerMapLock; + boost::asio::io_service mIOService; boost::recursive_mutex dbLock; @@ -43,6 +47,7 @@ public: Wallet& getWallet() { return(mWallet); } PubKeyCache& getPubKeyCache() { return mPKCache; } Database* getDB() { return(mDatabase); } + LedgerMaster& getMasterLedger() { return mMasterLedger; } ScopedLock getDBLock() { return ScopedLock(dbLock); } void setDB(Database* db) { mDatabase=db; }