Removed hashType byte cast.

This commit is contained in:
Jonathan Gillham 2014-10-11 21:00:27 +01:00
parent e6bdb4465d
commit a9cf4a2bf5

View file

@ -2747,7 +2747,7 @@ func SignRawTransaction(w *Wallet, chainSvr *chain.Client, icmd btcjson.Cmd) (in
btcscript.SigHashSingle || i < len(msgTx.TxOut) { btcscript.SigHashSingle || i < len(msgTx.TxOut) {
script, err := btcscript.SignTxOutput(activeNet.Params, script, err := btcscript.SignTxOutput(activeNet.Params,
msgTx, i, input, byte(hashType), getKey, msgTx, i, input, hashType, getKey,
getScript, txIn.SignatureScript) getScript, txIn.SignatureScript)
// Failure to sign isn't an error, it just means that // Failure to sign isn't an error, it just means that
// the tx isn't complete. // the tx isn't complete.