Skip to content

Commit 3897459

Browse files
[tests] Remove unused variables
1 parent 72163d4 commit 3897459

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

test/functional/bip68-sequence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ def activateCSV(self):
378378
# activation should happen at block height 432 (3 periods)
379379
min_activation_height = 432
380380
height = self.nodes[0].getblockcount()
381-
assert(height < 432)
382-
self.nodes[0].generate(432-height)
381+
assert(height < min_activation_height)
382+
self.nodes[0].generate(min_activation_height-height)
383383
assert(get_bip9_status(self.nodes[0], 'csv')['status'] == 'active')
384384
sync_blocks(self.nodes)
385385

test/functional/fundrawtransaction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ def run_test(self):
691691

692692
inputs = []
693693
outputs = {self.nodes[2].getnewaddress(): value for value in (1.0, 1.1, 1.2, 1.3)}
694-
keys = list(outputs.keys())
695694
rawtx = self.nodes[3].createrawtransaction(inputs, outputs)
696695

697696
result = [self.nodes[3].fundrawtransaction(rawtx),

test/functional/multi_rpc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ def run_test(self):
4141
authpair = url.username + ':' + url.password
4242

4343
#New authpair generated via share/rpcuser tool
44-
rpcauth = "rpcauth=rt:93648e835a54c573682c2eb19f882535$7681e9c5b74bdd85e78166031d2058e1069b3ed7ed967c93fc63abba06f31144"
4544
password = "cA773lm788buwYe4g4WT+05pKyNruVKjQ25x3n0DQcM="
4645

4746
#Second authpair with different username
48-
rpcauth2 = "rpcauth=rt2:f8607b1a88861fac29dfccf9b52ff9f$ff36a0c23c8c62b4846112e50fa888416e94c17bfd4c42f88fd8f55ec6a3137e"
4947
password2 = "8/F3uMDw4KSEbw96U3CA1C4X05dkHDN2BPFjTgZW4KI="
5048
authpairnew = "rt:"+password
5149

test/functional/rawtransactions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def run_test(self):
104104
txId = self.nodes[0].sendtoaddress(mSigObj, 2.2)
105105
decTx = self.nodes[0].gettransaction(txId)
106106
rawTx = self.nodes[0].decoderawtransaction(decTx['hex'])
107-
sPK = rawTx['vout'][0]['scriptPubKey']['hex']
108107
self.sync_all()
109108
self.nodes[0].generate(1)
110109
self.sync_all()

test/functional/zmq_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def run_test(self):
4141
topic = msg[0]
4242
assert_equal(topic, b"hashtx")
4343
body = msg[1]
44-
nseq = msg[2]
4544
msgSequence = struct.unpack('<I', msg[-1])[-1]
4645
assert_equal(msgSequence, 0) #must be sequence 0 on hashtx
4746

0 commit comments

Comments
 (0)