From 9ef45b4409e742bafd589e742bd25f470368b6c8 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 30 Aug 2017 15:05:48 -0300 Subject: [PATCH] use SIGHASH_FORKID for cash txs --- lib/model/txproposal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/txproposal.js b/lib/model/txproposal.js index 7db3770..435ca01 100644 --- a/lib/model/txproposal.js +++ b/lib/model/txproposal.js @@ -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);