Browse Source
use SIGHASH_FORKID for cash txs
feat/estimateFee-limit
Ivan Socolsky
7 years ago
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with
1 additions and
1 deletions
-
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); |
|
|