Correct maturity debug print.

This commit corrects the debug log print to use the hash of referenced
coinbase transaction instead of the hash of the current transation when a
coinbase maturity is not met.
This commit is contained in:
Dave Collins 2014-03-28 13:07:26 -05:00
parent 67ebfa0e80
commit 38a694e309

View file

@ -624,7 +624,7 @@ func CheckTransactionInputs(tx *btcutil.Tx, txHeight int64, txStore TxStore) (in
str := fmt.Sprintf("tried to spend coinbase "+ str := fmt.Sprintf("tried to spend coinbase "+
"transaction %v from height %v at "+ "transaction %v from height %v at "+
"height %v before required maturity "+ "height %v before required maturity "+
"of %v blocks", txHash, originHeight, "of %v blocks", txInHash, originHeight,
txHeight, coinbaseMaturity) txHeight, coinbaseMaturity)
return 0, RuleError(str) return 0, RuleError(str)
} }