+prints
This commit is contained in:
@@ -1908,7 +1908,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
nLocalServices |= NODE_ADDRINDEX;
|
||||
if ( GetBoolArg("-spentindex", DEFAULT_SPENTINDEX) != 0 )
|
||||
nLocalServices |= NODE_SPENTINDEX;
|
||||
|
||||
fprintf(stderr,"nLocalServices %llx %d, %d\n",(long long)nLocalServices,GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX),GetBoolArg("-spentindex", DEFAULT_SPENTINDEX));
|
||||
// ********************************************************* Step 10: import blocks
|
||||
|
||||
if (mapArgs.count("-blocknotify"))
|
||||
|
||||
34
src/main.cpp
34
src/main.cpp
@@ -7046,6 +7046,21 @@ void static ProcessGetData(CNode* pfrom)
|
||||
}
|
||||
}
|
||||
|
||||
void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> payload) // received a request
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void komodo_nSPVresp(CNode *pfrom,std::vector<uint8_t> payload) // received a response
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void komodo_nSPV(CNode *pto) // issue nSPV requests if has nServices
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived)
|
||||
{
|
||||
const CChainParams& chainparams = Params();
|
||||
@@ -7209,7 +7224,6 @@ fprintf(stderr, "recv: %s peer=%d\n", SanitizeString(strCommand).c_str(), (int32
|
||||
}
|
||||
else if ( strCommand == "events" )
|
||||
{
|
||||
int32_t i;
|
||||
if ( ASSETCHAINS_CCLIB != "gamescc" )
|
||||
{
|
||||
Misbehaving(pfrom->GetId(), 1);
|
||||
@@ -7412,10 +7426,22 @@ fprintf(stderr, "recv: %s peer=%d\n", SanitizeString(strCommand).c_str(), (int32
|
||||
BOOST_FOREACH(const CAddress &addr, vAddr)
|
||||
pfrom->PushAddress(addr);
|
||||
}
|
||||
|
||||
else if (strCommand == "getnSPV")
|
||||
{
|
||||
std::vector<uint8_t> payload;
|
||||
vRecv >> payload;
|
||||
komodo_nSPVreq(pfrom,payload);
|
||||
return(true);
|
||||
}
|
||||
else if ( KOMODO_NSPV != 0 )
|
||||
{
|
||||
// handle addressutxos, addresstxids, notarizations, ... messages
|
||||
if (strCommand == "nSPV")
|
||||
{
|
||||
std::vector<uint8_t> payload;
|
||||
vRecv >> payload;
|
||||
komodo_nSPVresp(pfrom,payload);
|
||||
return(true);
|
||||
}
|
||||
fprintf(stderr,"ignore message %s\n",strCommand.c_str());
|
||||
return(true);
|
||||
}
|
||||
@@ -8210,7 +8236,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
|
||||
}
|
||||
if ( KOMODO_NSPV != 0 )
|
||||
{
|
||||
// issue getaddressutxos, ...
|
||||
komodo_nSPV(pto);
|
||||
return(true);
|
||||
}
|
||||
BOOST_FOREACH(const CBlockReject& reject, state.rejects)
|
||||
|
||||
@@ -458,6 +458,7 @@ void CNode::PushVersion()
|
||||
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
|
||||
PushMessage("version", PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
|
||||
nLocalHostNonce, strSubVersion, nBestHeight, true);
|
||||
fprintf(stderr,"PUSH services.%llx\n",(long long)nLocalServices);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user