Merge pull request #2743 from jgarzik/reject-reason

Log reason for non-standard transaction rejection
This commit is contained in:
Jeff Garzik
2013-07-10 08:50:49 -07:00
4 changed files with 38 additions and 18 deletions

View File

@@ -326,7 +326,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);