Files
thehub/libs/p2p/P2PNetInterface.h
T

20 lines
450 B
C++
Raw Permalink Normal View History

2020-04-17 19:33:06 +02:00
#ifndef P2PNETINTERFACE_H
#define P2PNETINTERFACE_H
#include "PeerAddressDB.h"
class P2PNetInterface
{
public:
P2PNetInterface() = default;
virtual ~P2PNetInterface();
virtual void newPeer(int peerId, const std::string &userAgent, int startHeight, PeerAddress address) {};
virtual void lostPeer(int peerId) {}
virtual void punishMentChanged(int peerId) {}
virtual void blockchainHeightChanged(int newHeight) {}
};
#endif