Merge pull request #3077 from sipa/chain

Refactor/encapsulate chain globals into a CChain class
This commit is contained in:
Gavin Andresen
2013-10-14 20:39:00 -07:00
19 changed files with 217 additions and 213 deletions

View File

@@ -28,7 +28,6 @@ static const unsigned int MAX_INV_SZ = 50000;
class CNode;
class CBlockIndex;
extern int nBestHeight;
@@ -52,6 +51,7 @@ void SocketSendData(CNode *pnode);
// Signals for message handling
struct CNodeSignals
{
boost::signals2::signal<int ()> GetHeight;
boost::signals2::signal<bool (CNode*)> ProcessMessages;
boost::signals2::signal<bool (CNode*, bool)> SendMessages;
};