Skip to content

Commit

Permalink
Fix for nblocks not in the __init__.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
chiguireitor committed Jan 13, 2019
1 parent 9e00765 commit 1b2670e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions counterpartylib/lib/backend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ def ensure_script_pub_key_for_inputs(coins):
return coins


def fee_per_kb(conf_target, mode):
def fee_per_kb(conf_target, mode, nblocks=None):
"""
:param conf_target:
:param mode:
:return: fee_per_kb in satoshis, or None when unable to determine
"""

return BACKEND().fee_per_kb(conf_target, mode)
return BACKEND().fee_per_kb(conf_target, mode, nblocks=nblocks)


def deserialize(tx_hex):
Expand Down

1 comment on commit 1b2670e

@Dorson
Copy link

@Dorson Dorson commented on 1b2670e Feb 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OR 1 satoshi / kb as the base error-fallback fee, till the time when 1 Sat = 10 cent or so.

nblocks=nblocks seems like it would create a loop, if some conditional function would depend on that to have an assigned value to stop. Not smart enough to propose a better solution.

Possible error cases are hard to know without years of seeing them. Some experienced person on stackoverflow could know.

Please sign in to comment.