Merge branch 'jrick_double_spend_err' of https://github.com/jrick/btcchain into jrick-jrick_double_spend_err

This commit is contained in:
Dave Collins 2015-01-08 05:42:40 -06:00
commit 4e41922fe8

View file

@ -701,8 +701,7 @@ func CheckTransactionInputs(tx *btcutil.Tx, txHeight int64, txStore TxStore) (in
} }
if originTx.Spent[originTxIndex] { if originTx.Spent[originTxIndex] {
str := fmt.Sprintf("transaction %v tried to double "+ str := fmt.Sprintf("transaction %v tried to double "+
"spend coins from transaction %v", txHash, "spend output %v", txHash, txIn.PreviousOutPoint)
txInHash)
return 0, ruleError(ErrDoubleSpend, str) return 0, ruleError(ErrDoubleSpend, str)
} }