Log reason for non-standard transaction rejection

This commit is contained in:
Jeff Garzik
2013-06-23 02:05:25 -04:00
parent b4a8a326c0
commit 980bfe6ef8
4 changed files with 38 additions and 18 deletions

View File

@@ -324,7 +324,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState& state);
/** Check for standard transaction types
@return True if all outputs (scriptPubKeys) use only standard transaction forms
*/
bool IsStandardTx(const CTransaction& tx);
bool IsStandardTx(const CTransaction& tx, std::string& reason);
bool IsFinalTx(const CTransaction &tx, int nBlockHeight = 0, int64 nBlockTime = 0);