MCPcopy Create free account
hub / github.com/LUX-Core/lux / ActiveProtocol

Function ActiveProtocol

src/main.cpp:7228–7236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7226}
7227
7228int ActiveProtocol()
7229{
7230 const CChainParams& chainParams = Params();
7231 if (chainActive.Height() < chainParams.SwitchRX2Block() - 10) { //Start banning 10 blocks earlier
7232 return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;
7233 } else {
7234 return PROTOCOL_VERSION;
7235 }
7236}
7237
7238// requires LOCK(cs_vRecvMsg)
7239bool ProcessMessages(CNode* pfrom)

Callers 3

ProcessMessageFunction · 0.85
RelayTransactionFunction · 0.85
RelayInvFunction · 0.85

Calls 3

HeightMethod · 0.80
SwitchRX2BlockMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected