signrawtransactionwithwallet in feature_dip0020_activation.py

Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
pasta 2020-12-14 20:24:23 -06:00
parent df138d7346
commit 063f7655d0
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -35,7 +35,7 @@ class DIP0020ActivationTest(BitcoinTestFramework):
tx = CTransaction() tx = CTransaction()
tx.vin.append(CTxIn(COutPoint(int(utxo["txid"], 16), utxo["vout"]))) tx.vin.append(CTxIn(COutPoint(int(utxo["txid"], 16), utxo["vout"])))
tx.vout.append(CTxOut(value, CScript([b'1', b'2', OP_CAT]))) tx.vout.append(CTxOut(value, CScript([b'1', b'2', OP_CAT])))
tx_signed_hex = self.node.signrawtransaction(ToHex(tx))["hex"] tx_signed_hex = self.node.signrawtransactionwithwallet(ToHex(tx))["hex"]
txid = self.node.sendrawtransaction(tx_signed_hex) txid = self.node.sendrawtransaction(tx_signed_hex)
# This tx should be completely valid, should be included in mempool and mined in the next block # This tx should be completely valid, should be included in mempool and mined in the next block