mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-23 16:14:20 +01:00
No more pylightning imports !
``` $ grep -rE '^import lightning$|^from lightning' ``` Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
committed by
Christian Decker
parent
810bedddc0
commit
bfab383959
@@ -52,7 +52,7 @@ import math
|
|||||||
import pickle
|
import pickle
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lightning import LightningRpc
|
from pyln.client import LightningRpc
|
||||||
import dns.resolver
|
import dns.resolver
|
||||||
|
|
||||||
from bech32 import bech32_decode, CHARSET, convertbits
|
from bech32 import bech32_decode, CHARSET, convertbits
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
from pyln.client import Plugin, Millisatoshi
|
from pyln.client import Plugin, Millisatoshi
|
||||||
from packaging import version
|
from packaging import version
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import lightning
|
import pyln.client
|
||||||
import json
|
import json
|
||||||
from math import floor, log10
|
from math import floor, log10
|
||||||
import requests
|
import requests
|
||||||
@@ -15,7 +15,7 @@ have_utf8 = False
|
|||||||
|
|
||||||
# __version__ was introduced in 0.0.7.1, with utf8 passthrough support.
|
# __version__ was introduced in 0.0.7.1, with utf8 passthrough support.
|
||||||
try:
|
try:
|
||||||
if version.parse(lightning.__version__) >= version.parse("0.0.7.1"):
|
if version.parse(pyln.client.__version__) >= version.parse("0.0.7.1"):
|
||||||
have_utf8 = True
|
have_utf8 = True
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user