diff options
| author | Matt Corallo <[email protected]> | 2017-11-08 14:50:18 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2019-05-02 15:22:29 -0400 |
| commit | 7721ad64f40a0c67edefaaf7353264d78df8803e (patch) | |
| tree | 44727b13ce020db93cdb5df3c75251679f4af97a /src/consensus/tx_verify.cpp | |
| parent | Allow use of state.Invalid() for all reasons (diff) | |
| download | discoin-7721ad64f40a0c67edefaaf7353264d78df8803e.tar.xz discoin-7721ad64f40a0c67edefaaf7353264d78df8803e.zip | |
[refactor] Prep for scripted-diff by removing some \ns which annoy sed.
Diffstat (limited to 'src/consensus/tx_verify.cpp')
| -rw-r--r-- | src/consensus/tx_verify.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp index 62a1676e2..60af773b1 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)); } |