This commit is contained in:
jl777
2019-03-22 04:30:02 -11:00
parent 112df09f65
commit 3a141d3ccc

View File

@@ -7038,17 +7038,17 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
else if ( strCommand == "events" )
{
int32_t i;
if ( ASSETCHAINS_CCLIB != MYCCLIBNAME || ASSETCHAINS_CCLIB != "gamescc" )
if ( ASSETCHAINS_CCLIB != "gamescc" )
{
Misbehaving(pfrom->GetId(), 1);
return false;
}
CNodeState *state = State(pfrom->GetId());
if (state == NULL)
return;
for (i=0; i<vRecv.size(); i++)
fprintf(stderr,"%02x",vRecv[i]);
fprintf(" got event[%d] from %s: %s\n", (int32_t)vRecv.size(),__func__, state->name );
CNodeState *state = State(pfrom->GetId());
if ( state != NULL )
fprintf(stderr," got event[%d] from %s: %s\n", (int32_t)vRecv.size(),__func__, state->name );
else fprintf(stderr,"got event[%d]\n",(int32_t)vRecv.size());
return(true);
}
else if (strCommand == "verack")