refund script bug

This commit is contained in:
Jay Graber 2017-09-11 11:52:08 -07:00
parent 63d776bf36
commit 7042473554
2 changed files with 0 additions and 2 deletions

View File

@ -208,7 +208,6 @@ class bitcoinProxy():
txout = CMutableTxOut(fundtx['amount'] - FEE, refundPubKey.to_scriptPubKey())
# Create the unsigned raw transaction.
tx = CMutableTransaction([txin], [txout])
tx.nLockTime = 2430
sighash = SignatureHash(redeemScript, tx, 0, SIGHASH_ALL)
privkey = self.bitcoind.dumpprivkey(refundPubKey)
sig = privkey.sign(sighash) + bytes([SIGHASH_ALL])

View File

@ -214,7 +214,6 @@ class zcashProxy():
txout = CMutableTxOut(fundtx['amount'] - FEE, refundPubKey.to_scriptPubKey())
# Create the unsigned raw transaction.
tx = CMutableTransaction([txin], [txout])
tx.nLockTime = 2430
sighash = SignatureHash(redeemScript, tx, 0, SIGHASH_ALL)
privkey = self.zcashd.dumpprivkey(refundPubKey)
sig = privkey.sign(sighash) + bytes([SIGHASH_ALL])