Skip to content

Commit 0fc3dee

Browse files
committed
test: remove unecessary decoderawtransaction calls
In `wallet_fundrawtransaction`, there are some unecessary variables/calls to `decoderawtransaction`. They have not been used.
1 parent f57e724 commit 0fc3dee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/functional/wallet_fundrawtransaction.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def test_simple(self):
183183
inputs = [ ]
184184
outputs = { self.nodes[0].getnewaddress() : 1.0 }
185185
rawtx = self.nodes[2].createrawtransaction(inputs, outputs)
186-
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
187186
rawtxfund = self.nodes[2].fundrawtransaction(rawtx)
188187
dec_tx = self.nodes[2].decoderawtransaction(rawtxfund['hex'])
189188
assert len(dec_tx['vin']) > 0 #test that we have enough inputs
@@ -193,8 +192,6 @@ def test_simple_two_coins(self):
193192
inputs = [ ]
194193
outputs = { self.nodes[0].getnewaddress() : 2.2 }
195194
rawtx = self.nodes[2].createrawtransaction(inputs, outputs)
196-
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
197-
198195
rawtxfund = self.nodes[2].fundrawtransaction(rawtx)
199196
dec_tx = self.nodes[2].decoderawtransaction(rawtxfund['hex'])
200197
assert len(dec_tx['vin']) > 0 #test if we have enough inputs
@@ -206,7 +203,6 @@ def test_simple_two_outputs(self):
206203
inputs = [ ]
207204
outputs = { self.nodes[0].getnewaddress() : 2.6, self.nodes[1].getnewaddress() : 2.5 }
208205
rawtx = self.nodes[2].createrawtransaction(inputs, outputs)
209-
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
210206

211207
rawtxfund = self.nodes[2].fundrawtransaction(rawtx)
212208
dec_tx = self.nodes[2].decoderawtransaction(rawtxfund['hex'])
@@ -364,7 +360,6 @@ def test_two_vin(self):
364360
# Should fail without add_inputs:
365361
assert_raises_rpc_error(-4, ERR_NOT_ENOUGH_PRESET_INPUTS, self.nodes[2].fundrawtransaction, rawtx, add_inputs=False)
366362
rawtxfund = self.nodes[2].fundrawtransaction(rawtx, add_inputs=True)
367-
368363
dec_tx = self.nodes[2].decoderawtransaction(rawtxfund['hex'])
369364
totalOut = 0
370365
matchingOuts = 0

0 commit comments

Comments
 (0)