Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore_fees strategy attempts to divide an integer by a string #116

Closed
Fopstronaut opened this issue Jun 10, 2024 · 1 comment · Fixed by #117
Closed

ignore_fees strategy attempts to divide an integer by a string #116

Fopstronaut opened this issue Jun 10, 2024 · 1 comment · Fixed by #117

Comments

@Fopstronaut
Copy link

Commit: 676f922
LND version: 0.18.0-beta

charge-lnd doesn't feel like applying the ignore_fees strategy.

Traceback (most recent call last):
  File "/.../.local/bin/charge-lnd", line 5, in <module>
    from charge_lnd.charge_lnd import main
  File "/.../.venv/lib/python3.12/site-packages/charge_lnd/charge_lnd.py", line 189, in <module>
    success = main()
              ^^^^^^
  File "/.../.venv/lib/python3.12/site-packages/charge_lnd/charge_lnd.py", line 100, in main
    lnd.update_chan_policy(channel.chan_id, chp)
  File "/.../.venv/lib/python3.12/site-packages/charge_lnd/lnd.py", line 162, in update_chan_policy
    fee_rate=chp.fee_ppm/1000000 if chp.fee_ppm is not None else my_policy.fee_rate_milli_msat/1000000,
             ~~~~~~~~~~~^~~~~~~~
TypeError: unsupported operand type(s) for /: 'str' and 'int'
@feelancer21
Copy link
Contributor

I think the reason was this commit.
9fed8d3

Should be easy to fix. I give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants