mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-03 00:45:49 +00:00
first
This commit is contained in:
47
Application.h
Normal file
47
Application.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#include "UniqueNodeList.h"
|
||||
#include "ConnectionPool.h"
|
||||
#include "KnownNodeList.h"
|
||||
#include "LedgerMaster.h"
|
||||
#include "TimingService.h"
|
||||
#include "ValidationCollection.h"
|
||||
#include "Wallet.h"
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
class RPCDoor;
|
||||
class PeerDoor;
|
||||
|
||||
|
||||
class Application
|
||||
{
|
||||
TimingService mTimingService;
|
||||
UniqueNodeList mUNL;
|
||||
KnownNodeList mKnownNodes;
|
||||
Wallet mWallet;
|
||||
ValidationCollection mValidations;
|
||||
|
||||
LedgerMaster mLedgerMaster;
|
||||
|
||||
ConnectionPool mConnectionPool;
|
||||
PeerDoor* mPeerDoor;
|
||||
RPCDoor* mRPCDoor;
|
||||
|
||||
boost::asio::io_service mIOService;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
Application();
|
||||
|
||||
ConnectionPool& getConnectionPool(){ return(mConnectionPool); }
|
||||
LedgerMaster& getLedgerMaster(){ return(mLedgerMaster); }
|
||||
UniqueNodeList& getUNL(){ return(mUNL); }
|
||||
ValidationCollection& getValidationCollection(){ return(mValidations); }
|
||||
|
||||
|
||||
|
||||
void run();
|
||||
|
||||
|
||||
};
|
||||
|
||||
extern Application* theApp;
|
||||
Reference in New Issue
Block a user