Skip to content

Commit

Permalink
Bug fix to RPC test
Browse files Browse the repository at this point in the history
  • Loading branch information
morcos committed Feb 10, 2016
1 parent da6ad5f commit a51c79b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qa/rpc-tests/bip68-sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def test_sequence_lock_unconfirmed_inputs(self):
# Store height so we can easily reset the chain at the end of the test
cur_height = self.nodes[0].getblockcount()

utxos = self.nodes[0].listunspent()

# Create a mempool tx.
txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 2)
tx1 = FromHex(CTransaction(), self.nodes[0].getrawtransaction(txid))
Expand Down Expand Up @@ -286,6 +284,7 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
tx5 = test_nonzero_locks(tx4, self.nodes[0], self.relayfee, use_height_lock=True)
assert(tx5.hash not in self.nodes[0].getrawmempool())

utxos = self.nodes[0].listunspent()
tx5.vin.append(CTxIn(COutPoint(int(utxos[0]["txid"], 16), utxos[0]["vout"]), nSequence=1))
tx5.vout[0].nValue += int(utxos[0]["amount"]*COIN)
raw_tx5 = self.nodes[0].signrawtransaction(ToHex(tx5))["hex"]
Expand Down

0 comments on commit a51c79b

Please sign in to comment.