diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-10-26 18:08:11 -0400 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-11-03 13:35:54 -0700 |
commit | 902768099cb92b39f5ff509cd91fdd8970759b8a (patch) | |
tree | 58c44ac95241fa4ad36b80a4eefdc1e87ecb4b3a /src/net.h | |
parent | 7588b85cd2fc0a37c260d014206d5badde4b2c78 (diff) |
net: handle version push in InitializeNode
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -163,9 +163,6 @@ public: PushMessageWithVersionAndFlag(pnode, 0, 0, sCommand, std::forward<Args>(args)...); } - void PushVersion(CNode* pnode, int64_t nTime); - - template<typename Callable> bool ForEachNodeContinueIf(Callable&& func) { @@ -462,7 +459,7 @@ struct CNodeSignals { boost::signals2::signal<bool (CNode*, CConnman&), CombinerAll> ProcessMessages; boost::signals2::signal<bool (CNode*, CConnman&), CombinerAll> SendMessages; - boost::signals2::signal<void (NodeId, const CNode*)> InitializeNode; + boost::signals2::signal<void (CNode*, CConnman&)> InitializeNode; boost::signals2::signal<void (NodeId, bool&)> FinalizeNode; }; @@ -722,6 +719,10 @@ public: return nLocalHostNonce; } + int GetMyStartingHeight() const { + return nMyStartingHeight; + } + int GetRefCount() { assert(nRefCount >= 0); |