mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
don't take min_confirmatinos from kwargs; take it from the UTXO service client
This commit is contained in:
@@ -104,7 +104,7 @@ def make_outputs( data, inputs, sender_addr, fee, tx_fee, pay_fee=True ):
|
||||
]
|
||||
|
||||
|
||||
def make_transaction(name, preorder_addr, register_addr, fee, consensus_hash, blockchain_client, tx_fee=0, subsidize=False, safety=True, min_payment_confs=TX_MIN_CONFIRMATIONS):
|
||||
def make_transaction(name, preorder_addr, register_addr, fee, consensus_hash, blockchain_client, tx_fee=0, subsidize=False, safety=True):
|
||||
"""
|
||||
Builds and broadcasts a preorder transaction.
|
||||
"""
|
||||
@@ -128,7 +128,7 @@ def make_transaction(name, preorder_addr, register_addr, fee, consensus_hash, bl
|
||||
pay_fee = False
|
||||
|
||||
# tx only
|
||||
inputs = tx_get_unspents( preorder_addr, blockchain_client, min_confirmations=min_payment_confs )
|
||||
inputs = tx_get_unspents( preorder_addr, blockchain_client )
|
||||
if safety:
|
||||
assert len(inputs) > 0, "No UTXOs for {}".format(preorder_addr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user