@ -797,9 +797,6 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
g_signals . EraseTransaction ( ptxOld - > GetHash ( ) ) ;
g_signals . EraseTransaction ( ptxOld - > GetHash ( ) ) ;
g_signals . SyncTransaction ( hash , tx , NULL ) ;
g_signals . SyncTransaction ( hash , tx , NULL ) ;
LogPrint ( " mempool " , " AcceptToMemoryPool: : accepted %s (poolsz % " PRIszu " ) \n " ,
hash . ToString ( ) . c_str ( ) ,
pool . mapTx . size ( ) ) ;
return true ;
return true ;
}
}
@ -3100,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 ( ) )
@ -3168,7 +3167,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
pfrom - > fSuccessfullyConnected = true ;
pfrom - > fSuccessfullyConnected = true ;
LogPrintf ( " receive version message: version %d, blocks=%d, us=%s, them=%s, peer=%s \n " , 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 - > cleanSubVer . 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 ) ;
@ -3427,6 +3426,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
vWorkQueue . push_back ( inv . hash ) ;
vWorkQueue . push_back ( inv . hash ) ;
vEraseQueue . push_back ( inv . hash ) ;
vEraseQueue . push_back ( inv . hash ) ;
LogPrint ( " mempool " , " AcceptToMemoryPool: %s %s : accepted %s (poolsz % " PRIszu " ) \n " ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > cleanSubVer . c_str ( ) ,
tx . GetHash ( ) . ToString ( ) . c_str ( ) ,
mempool . mapTx . size ( ) ) ;
// Recursively process any orphan transactions that depended on this one
// Recursively process any orphan transactions that depended on this one
for ( unsigned int i = 0 ; i < vWorkQueue . size ( ) ; i + + )
for ( unsigned int i = 0 ; i < vWorkQueue . size ( ) ; i + + )
{
{
@ -3476,6 +3481,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
int nDoS = 0 ;
int nDoS = 0 ;
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 ( ) ,
pfrom - > addr . ToString ( ) . c_str ( ) , pfrom - > cleanSubVer . 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 ) ;
if ( nDoS > 0 )
if ( nDoS > 0 )
@ -3612,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 ,