mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
[qa] Rename python input variable to tx_input
input() is actually the name of a python built in function
This commit is contained in:
parent
1dfd64fadc
commit
0b94e49831
@ -265,11 +265,11 @@ def test_locked_wallet_fails(rbf_node, dest_address):
|
|||||||
|
|
||||||
|
|
||||||
def spend_one_input(node, dest_address):
|
def spend_one_input(node, dest_address):
|
||||||
input = dict(
|
tx_input = dict(
|
||||||
sequence=BIP125_SEQUENCE_NUMBER, **next(u for u in node.listunspent() if u["amount"] == Decimal("0.00100000")))
|
sequence=BIP125_SEQUENCE_NUMBER, **next(u for u in node.listunspent() if u["amount"] == Decimal("0.00100000")))
|
||||||
rawtx = node.createrawtransaction(
|
rawtx = node.createrawtransaction(
|
||||||
[input], {dest_address: Decimal("0.00050000"),
|
[tx_input], {dest_address: Decimal("0.00050000"),
|
||||||
node.getrawchangeaddress(): Decimal("0.00049000")})
|
node.getrawchangeaddress(): Decimal("0.00049000")})
|
||||||
signedtx = node.signrawtransaction(rawtx)
|
signedtx = node.signrawtransaction(rawtx)
|
||||||
txid = node.sendrawtransaction(signedtx["hex"])
|
txid = node.sendrawtransaction(signedtx["hex"])
|
||||||
return txid
|
return txid
|
||||||
|
Loading…
Reference in New Issue
Block a user