Browse Source

use SIGHASH_FORKID for cash txs

feat/estimateFee-limit
Ivan Socolsky 7 years ago
parent
commit
9ef45b4409
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 2
      lib/model/txproposal.js

2
lib/model/txproposal.js

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

Loading…
Cancel
Save