Skip to content

Commit

Permalink
Modify message string so we don't need to backport commits which impl…
Browse files Browse the repository at this point in the history
…ement FormatStateMessage and GetDebugMessage and involve changes to consensus/validation.h
  • Loading branch information
bitcartel committed Sep 17, 2016
1 parent 60aed95 commit de3dd8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4752,7 +4752,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
LogPrintf("Force relaying tx %s from whitelisted peer=%d\n", tx.GetHash().ToString(), pfrom->id);
RelayTransaction(tx);
} else {
LogPrintf("Not relaying invalid transaction %s from whitelisted peer=%d (%s)\n", tx.GetHash().ToString(), pfrom->id, FormatStateMessage(state));
LogPrintf("Not relaying invalid transaction %s from whitelisted peer=%d (%s (code %i))\n",
tx.GetHash().ToString(), pfrom->id, state.GetRejectReason(), state.GetRejectCode());
}
}
}
Expand Down

0 comments on commit de3dd8a

Please sign in to comment.