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:
parent
67ebfa0e80
commit
38a694e309
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue