Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/protocol.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | if (nMessageSize > MAX_SIZE) { | ||||
"MAX_SIZE\n", | "MAX_SIZE\n", | ||||
GetCommand().c_str(), nMessageSize); | GetCommand().c_str(), nMessageSize); | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
CAddress::CAddress() : CSeederService() { | |||||
Init(); | |||||
} | |||||
CAddress::CAddress(CSeederService ipIn, uint64_t nServicesIn) | |||||
: CSeederService(ipIn) { | |||||
Init(); | |||||
nServices = nServicesIn; | |||||
} | |||||
void CAddress::Init() { | |||||
nServices = NODE_NETWORK | NODE_BITCOIN_CASH; | |||||
nTime = 100000000; | |||||
} | |||||
void CAddress::print() const { | |||||
printf("CAddress(%s)\n", ToString().c_str()); | |||||
} | |||||
CInv::CInv() { | CInv::CInv() { | ||||
type = 0; | type = 0; | ||||
hash.SetNull(); | hash.SetNull(); | ||||
} | } | ||||
CInv::CInv(uint32_t typeIn, const uint256 &hashIn) { | CInv::CInv(uint32_t typeIn, const uint256 &hashIn) { | ||||
type = typeIn; | type = typeIn; | ||||
hash = hashIn; | hash = hashIn; | ||||
Show All 39 Lines |