diff options
| author | Alex Morcos <[email protected]> | 2016-02-10 16:01:04 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-02-10 16:01:04 -0500 |
| commit | a51c79be6b8ef060697287dce3195876069899bd (patch) | |
| tree | 85af7f550143d618185f1cb92b63ecf20d0c80a4 /qa/rpc-tests/bip68-sequence.py | |
| parent | Add RPC test exercising BIP68 (mempool only) (diff) | |
| download | discoin-a51c79be6b8ef060697287dce3195876069899bd.tar.xz discoin-a51c79be6b8ef060697287dce3195876069899bd.zip | |
Bug fix to RPC test
Diffstat (limited to 'qa/rpc-tests/bip68-sequence.py')
| -rwxr-xr-x | qa/rpc-tests/bip68-sequence.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qa/rpc-tests/bip68-sequence.py b/qa/rpc-tests/bip68-sequence.py index 45b4f22c0..bd61282fa 100755 --- a/qa/rpc-tests/bip68-sequence.py +++ b/qa/rpc-tests/bip68-sequence.py @@ -202,8 +202,6 @@ class BIP68Test(BitcoinTestFramework): # 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)) @@ -286,6 +284,7 @@ class BIP68Test(BitcoinTestFramework): 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"] |