Skip to content

Commit

Permalink
fixup! feat: drain plugin command
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock committed May 23, 2019
1 parent 42fb8a3 commit 9c7c248
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drain/drain.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ def try_with_htlc_fee(plugin, payload, my_id, outgoing_id, route_out, scid, spen
setup_routing_fees(plugin, route, payload['amount'], payload, True)
fees = payload['amount'] - route[-1]['amount_msat']

# TODO: check first/last hop fees
#fees_old = route[0]['amount_msat'] - route[-1]['amount_msat']
#print(route, fees, fees - fees_old)
#raise RpcError("drain", payload, {'message': 'FOO'})

# check fee and exclude worst channel the next time
# NOTE: the int(msat) casts are just a workaround for outdated pylightning versions
if fees > payload['exemptfee'] and int(fees) > int(payload['amount']) * payload['maxfeepercent'] / 100:
Expand Down

0 comments on commit 9c7c248

Please sign in to comment.