Skip to content

Commit

Permalink
Update protos to lnd 0.18 and preserve inbound fee
Browse files Browse the repository at this point in the history
1. proto files are updated to lnd 0.18
2. already set inbound fee rate and base fee are preserved by charge-lnd
3. updated dependencies
  • Loading branch information
feelancer21 committed May 12, 2024
1 parent db9f292 commit 5b4cff4
Show file tree
Hide file tree
Showing 8 changed files with 4,591 additions and 17,973 deletions.
671 changes: 671 additions & 0 deletions charge_lnd/grpc_generated/lightning_pb2.py

Large diffs are not rendered by default.

3,381 changes: 3,381 additions & 0 deletions charge_lnd/grpc_generated/lightning_pb2_grpc.py

Large diffs are not rendered by default.

2,688 changes: 134 additions & 2,554 deletions charge_lnd/grpc_generated/router_pb2.py

Large diffs are not rendered by default.

491 changes: 398 additions & 93 deletions charge_lnd/grpc_generated/router_pb2_grpc.py

Large diffs are not rendered by default.

12,992 changes: 0 additions & 12,992 deletions charge_lnd/grpc_generated/rpc_pb2.py

This file was deleted.

2,329 changes: 0 additions & 2,329 deletions charge_lnd/grpc_generated/rpc_pb2_grpc.py

This file was deleted.

6 changes: 4 additions & 2 deletions charge_lnd/lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re
import time

from .grpc_generated import rpc_pb2_grpc as lnrpc, rpc_pb2 as ln
from .grpc_generated import lightning_pb2_grpc as lnrpc, lightning_pb2 as ln
from .grpc_generated import router_pb2_grpc as routerrpc, router_pb2 as router

MESSAGE_SIZE_MB = 50 * 1024 * 1024
Expand Down Expand Up @@ -156,7 +156,9 @@ def update_chan_policy(self, chanid, base_fee_msat, fee_ppm, min_htlc_msat, max_
min_htlc_msat=(min_htlc_msat if min_htlc_msat is not None else my_policy.min_htlc),
min_htlc_msat_specified=min_htlc_msat is not None,
max_htlc_msat=(max_htlc_msat if max_htlc_msat is not None else my_policy.max_htlc_msat),
time_lock_delta=(time_lock_delta if time_lock_delta is not None else my_policy.time_lock_delta)
time_lock_delta=(time_lock_delta if time_lock_delta is not None else my_policy.time_lock_delta),
inbound_base_fee_msat=my_policy.inbound_fee_base_msat,
inbound_fee_rate_ppm=my_policy.inbound_fee_rate_milli_msat
))

def get_txns(self, start_height = None, end_height = None):
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
setuptools
googleapis-common-protos==1.56.0
grpcio==1.53.2
protobuf==3.20.2
googleapis-common-protos==1.56.1
grpcio==1.63.0
protobuf==5.26.1
six==1.16.0
termcolor==1.1.0
colorama==0.4.4
Expand Down

0 comments on commit 5b4cff4

Please sign in to comment.