From 7721ad64f40a0c67edefaaf7353264d78df8803e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 8 Nov 2017 14:50:18 -0500 Subject: [refactor] Prep for scripted-diff by removing some \ns which annoy sed. --- src/consensus/tx_verify.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/consensus') diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp index 62a1676e2b..60af773b17 100644 --- a/src/consensus/tx_verify.cpp +++ b/src/consensus/tx_verify.cpp @@ -172,8 +172,7 @@ bool Consensus::CheckTxInputs(const CTransaction& tx, CValidationState& state, c // If prev is coinbase, check that it's matured if (coin.IsCoinBase() && nSpendHeight - coin.nHeight < COINBASE_MATURITY) { - return state.DoS(0, ValidationInvalidReason::TX_MISSING_INPUTS, false, - REJECT_INVALID, "bad-txns-premature-spend-of-coinbase", false, + return state.DoS(0, ValidationInvalidReason::TX_MISSING_INPUTS, false, REJECT_INVALID, "bad-txns-premature-spend-of-coinbase", false, strprintf("tried to spend coinbase at depth %d", nSpendHeight - coin.nHeight)); } -- cgit v1.2.3