use SIGHASH_FORKID for cash txs

This commit is contained in:
Ivan Socolsky 2017-08-30 15:05:48 -03:00
parent acdf99a34f
commit 9ef45b4409
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ TxProposal.prototype._addSignaturesToBitcoreTx = function(tx, signatures, xpub)
var s = {
inputIndex: i,
signature: signature,
sigtype: bitcore.crypto.Signature.SIGHASH_ALL,
sigtype: bitcore.crypto.Signature.SIGHASH_ALL | bitcore.crypto.Signature.SIGHASH_FORKID,
publicKey: pub,
};
tx.inputs[i].addSignature(tx, s);