@ -3097,8 +3097,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
pfrom - > nVersion = 300 ;
pfrom - > nVersion = 300 ;
if ( ! vRecv . empty ( ) )
if ( ! vRecv . empty ( ) )
vRecv > > addrFrom > > nNonce ;
vRecv > > addrFrom > > nNonce ;
if ( ! vRecv . empty ( ) )
if ( ! vRecv . empty ( ) ) {
vRecv > > pfrom - > strSubVer ;
vRecv > > pfrom - > strSubVer ;
pfrom - > cleanSubVer = SanitizeString ( pfrom - > strSubVer ) ;
}
if ( ! vRecv . empty ( ) )
if ( ! vRecv . empty ( ) )
vRecv > > pfrom - > nStartingHeight ;
vRecv > > pfrom - > nStartingHeight ;
if ( ! vRecv . empty ( ) )
if ( ! vRecv . empty ( ) )
@ -3165,7 +3167,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
pfrom - > fSuccessfullyConnected = true ;
pfrom - > fSuccessfullyConnected = true ;
LogPrintf ( " receive version message: %s: version %d, blocks=%d, us=%s, them=%s, peer=%s \n " , pfrom - > str SubVer. c_str ( ) , pfrom - > nVersion , pfrom - > nStartingHeight , addrMe . ToString ( ) . c_str ( ) , addrFrom . ToString ( ) . c_str ( ) , pfrom - > addr . ToString ( ) . c_str ( ) ) ;
LogPrintf ( " receive version message: %s: version %d, blocks=%d, us=%s, them=%s, peer=%s \n " , pfrom - > clean SubVer. c_str ( ) , pfrom - > nVersion , pfrom - > nStartingHeight , addrMe . ToString ( ) . c_str ( ) , addrFrom . ToString ( ) . c_str ( ) , pfrom - > addr . ToString ( ) . c_str ( ) ) ;
AddTimeData ( pfrom - > addr , nTime ) ;
AddTimeData ( pfrom - > addr , nTime ) ;
@ -3426,7 +3428,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
LogPrint ( " mempool " , " AcceptToMemoryPool: %s %s : accepted %s (poolsz % " PRIszu " ) \n " ,
LogPrint ( " mempool " , " AcceptToMemoryPool: %s %s : accepted %s (poolsz % " PRIszu " ) \n " ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > str SubVer. c_str ( ) ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > clean SubVer. c_str ( ) ,
tx . GetHash ( ) . ToString ( ) . c_str ( ) ,
tx . GetHash ( ) . ToString ( ) . c_str ( ) ,
mempool . mapTx . size ( ) ) ;
mempool . mapTx . size ( ) ) ;
@ -3480,7 +3482,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
if ( state . IsInvalid ( nDoS ) )
if ( state . IsInvalid ( nDoS ) )
{
{
LogPrint ( " mempool " , " %s from %s %s was not accepted into the memory pool: %s \n " , tx . GetHash ( ) . ToString ( ) . c_str ( ) ,
LogPrint ( " mempool " , " %s from %s %s was not accepted into the memory pool: %s \n " , tx . GetHash ( ) . ToString ( ) . c_str ( ) ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > str SubVer. c_str ( ) ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > clean SubVer. c_str ( ) ,
state . GetRejectReason ( ) . c_str ( ) ) ;
state . GetRejectReason ( ) . c_str ( ) ) ;
pfrom - > PushMessage ( " reject " , strCommand , state . GetRejectCode ( ) ,
pfrom - > PushMessage ( " reject " , strCommand , state . GetRejectCode ( ) ,
state . GetRejectReason ( ) , inv . hash ) ;
state . GetRejectReason ( ) , inv . hash ) ;
@ -3618,7 +3620,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
if ( ! ( sProblem . empty ( ) ) ) {
if ( ! ( sProblem . empty ( ) ) ) {
LogPrint ( " net " , " pong %s %s: %s, % " PRIx64 " expected, % " PRIx64 " received, % " PRIszu " bytes \n " ,
LogPrint ( " net " , " pong %s %s: %s, % " PRIx64 " expected, % " PRIx64 " received, % " PRIszu " bytes \n " ,
pfrom - > addr . ToString ( ) . c_str ( ) ,
pfrom - > addr . ToString ( ) . c_str ( ) ,
pfrom - > str SubVer. c_str ( ) ,
pfrom - > clean SubVer. c_str ( ) ,
sProblem . c_str ( ) ,
sProblem . c_str ( ) ,
pfrom - > nPingNonceSent ,
pfrom - > nPingNonceSent ,
nonce ,
nonce ,