mirror of
https://github.com/StijnBTC/Ringtools.git
synced 2025-02-28 07:54:09 +01:00
Remove cache and existing channels in channels.txt
This commit is contained in:
parent
f40b891fa8
commit
66fd5da20d
2 changed files with 0 additions and 71 deletions
66
channels.txt
66
channels.txt
|
@ -1,66 +0,0 @@
|
|||
760272708314857473
|
||||
760273807724773377
|
||||
760274907239677953
|
||||
760274907239743489
|
||||
762249630219239425
|
||||
722473697600208897
|
||||
721885458837536769
|
||||
760272708288380928
|
||||
760273807750987777
|
||||
760283703431593985
|
||||
760315589304385537
|
||||
760367266252193793
|
||||
760422241825587201
|
||||
760377161886728193
|
||||
760339778468380672
|
||||
760437635027173377
|
||||
760279305279045633
|
||||
760281504442220545
|
||||
760281504439926785
|
||||
760399152149299201
|
||||
760435435931303937
|
||||
760361768684552193
|
||||
760276006797705217
|
||||
760278205917364225
|
||||
760277106257952769
|
||||
760273807735783425
|
||||
762257326725464064
|
||||
760279305258336257
|
||||
760270509245071361
|
||||
760271608870338561
|
||||
760280404831895553
|
||||
760270509245005825
|
||||
760284802831745025
|
||||
760359569680695296
|
||||
760289200953294848
|
||||
760294698547019777
|
||||
760383758935523329
|
||||
760289200943857665
|
||||
760403550225301505
|
||||
760354072181342209
|
||||
760292499501678593
|
||||
760415644758573057
|
||||
760435435986419713
|
||||
760415644772139008
|
||||
760421142326935553
|
||||
760415644772204545
|
||||
760415644772335617
|
||||
760415644774105089
|
||||
760427739440218113
|
||||
760449729720745985
|
||||
760633348010606593
|
||||
760909325480689665
|
||||
760453028190420993
|
||||
760456326686310400
|
||||
760444232132001793
|
||||
760597064138358785
|
||||
760449729740668929
|
||||
760454127672492033
|
||||
760449729739751425
|
||||
760587168604225537
|
||||
760517899301224449
|
||||
760512401815896065
|
||||
760449729719566337
|
||||
760449729720877057
|
||||
760506904253104129
|
||||
760533292541149184
|
5
lnd.py
5
lnd.py
|
@ -1,6 +1,5 @@
|
|||
import codecs
|
||||
import os
|
||||
from functools import lru_cache
|
||||
from os.path import expanduser
|
||||
|
||||
import grpc
|
||||
|
@ -44,24 +43,20 @@ class Lnd:
|
|||
return combined_credentials
|
||||
|
||||
# TODO: handle invalid channel ids
|
||||
@lru_cache(maxsize=None)
|
||||
def get_edge(self, channel_id):
|
||||
return self.stub.GetChanInfo(ln.ChanInfoRequest(chan_id=channel_id))
|
||||
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
def get_node_channels(self, pubkey):
|
||||
return self.stub.GetNodeInfo(ln.NodeInfoRequest(
|
||||
|
||||
pub_key=pubkey, include_channels=True))
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
def get_node_alias(self, pub_key):
|
||||
return self.stub.GetNodeInfo(
|
||||
ln.NodeInfoRequest(pub_key=pub_key, include_channels=False)
|
||||
).node.alias
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
def get_node(self, pub_key):
|
||||
return self.stub.GetNodeInfo(
|
||||
ln.NodeInfoRequest(pub_key=pub_key, include_channels=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue