Skip to content

Commit

Permalink
Add: fee_rate parm on create_self_transfer_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
meherett committed Jun 10, 2024
1 parent 7ddc0c7 commit 6186733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/test_framework/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def sendrawtransaction(self, *, from_node, tx_hex, maxfeerate=0, **kwargs):
self.scan_tx(from_node.decoderawtransaction(tx_hex))
return txid

def create_self_transfer_chain(self, *, chain_length, utxo_to_spend=None):
def create_self_transfer_chain(self, *, chain_length, utxo_to_spend=None, fee_rate=Decimal("0.003")):
"""
Create a "chain" of chain_length transactions. The nth transaction in
the chain is a child of the n-1th transaction and parent of the n+1th transaction.
Expand All @@ -387,7 +387,7 @@ def create_self_transfer_chain(self, *, chain_length, utxo_to_spend=None):
chain = []

for _ in range(chain_length):
tx = self.create_self_transfer(utxo_to_spend=chaintip_utxo)
tx = self.create_self_transfer(utxo_to_spend=chaintip_utxo, fee_rate=fee_rate)
chaintip_utxo = tx["new_utxo"]
chain.append(tx)

Expand Down

0 comments on commit 6186733

Please sign in to comment.