test: Remove new_tx reference

new_tx is a reference to tx. To avoid confusion and code-bloat, remove it
pull/826/head
MarcoFalke 4 years ago
parent fb66dbe786
commit fa5f938cfe
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -47,13 +47,11 @@ def cltv_modify_tx(node, tx, prepend_scriptsig, nsequence=None, nlocktime=None):
# Need to re-sign, since nSequence and nLockTime changed
signed_result = node.signrawtransactionwithwallet(ToHex(tx))
new_tx = CTransaction()
new_tx.deserialize(BytesIO(hex_str_to_bytes(signed_result['hex'])))
else:
new_tx = tx
tx = CTransaction()
tx.deserialize(BytesIO(hex_str_to_bytes(signed_result['hex'])))
new_tx.vin[0].scriptSig = CScript(prepend_scriptsig + list(CScript(new_tx.vin[0].scriptSig)))
return new_tx
tx.vin[0].scriptSig = CScript(prepend_scriptsig + list(CScript(tx.vin[0].scriptSig)))
return tx
def cltv_invalidate(node, tx, failure_reason):

Loading…
Cancel
Save