From 38a694e309737c1c18366f8d592ac9160fcf0a88 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 28 Mar 2014 13:07:26 -0500 Subject: [PATCH] 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. --- validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate.go b/validate.go index 717ec096..27b85b4e 100644 --- a/validate.go +++ b/validate.go @@ -624,7 +624,7 @@ func CheckTransactionInputs(tx *btcutil.Tx, txHeight int64, txStore TxStore) (in str := fmt.Sprintf("tried to spend coinbase "+ "transaction %v from height %v at "+ "height %v before required maturity "+ - "of %v blocks", txHash, originHeight, + "of %v blocks", txInHash, originHeight, txHeight, coinbaseMaturity) return 0, RuleError(str) }