mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
fix: more import path fixes
This commit is contained in:
parent
4908f99999
commit
a448dbda8d
7 changed files with 17 additions and 17 deletions
|
|
@ -8,14 +8,15 @@ from decouple import config as dconfig
|
|||
from fastapi.exceptions import HTTPException
|
||||
from starlette import status
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2 as ln
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2_grpc as lnrpc
|
||||
import app.repositories.ln_impl.protos.lnd.router_pb2 as router
|
||||
import app.repositories.ln_impl.protos.lnd.router_pb2_grpc as routerrpc
|
||||
import app.repositories.ln_impl.protos.lnd.walletunlocker_pb2 as unlocker
|
||||
import app.repositories.ln_impl.protos.lnd.walletunlocker_pb2_grpc as unlockerrpc
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2 as ln
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2_grpc as lnrpc
|
||||
import app.lightning.impl.protos.lnd.router_pb2 as router
|
||||
import app.lightning.impl.protos.lnd.router_pb2_grpc as routerrpc
|
||||
import app.lightning.impl.protos.lnd.walletunlocker_pb2 as unlocker
|
||||
import app.lightning.impl.protos.lnd.walletunlocker_pb2_grpc as unlockerrpc
|
||||
from app.api.utils import SSE, broadcast_sse_msg, config_get_hex_str
|
||||
from app.models.lightning import (
|
||||
from app.lightning.impl.ln_base import LightningNodeBase
|
||||
from app.lightning.models import (
|
||||
Channel,
|
||||
FeeRevenue,
|
||||
ForwardSuccessEvent,
|
||||
|
|
@ -34,7 +35,6 @@ from app.models.lightning import (
|
|||
SendCoinsResponse,
|
||||
WalletBalance,
|
||||
)
|
||||
from app.lightning.impl.ln_base import LightningNodeBase
|
||||
|
||||
|
||||
def _check_if_locked(error):
|
||||
|
|
@ -67,7 +67,7 @@ LND_GRPC: Unable to connect to LND. Possible reasons:
|
|||
This will recreate the TLS certificate. The .env must be adapted accordingly.
|
||||
* TLS certificate is wrong. (settings changed, ...)
|
||||
|
||||
To Debug gRPC problems uncomment the following line in app.repositories.ln_impl.lnd_grpc.py
|
||||
To Debug gRPC problems uncomment the following line in app.lightning.impl.lnd_grpc.py
|
||||
# os.environ["GRPC_VERBOSITY"] = "DEBUG"
|
||||
This will show more debug information.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
|
||||
|
||||
class LightningStub(object):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from google.protobuf import reflection as _reflection
|
|||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
import app.repositories.ln_impl.protos.lnd.router_pb2 as router__pb2
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
import app.lightning.impl.protos.lnd.router_pb2 as router__pb2
|
||||
|
||||
|
||||
class RouterStub(object):
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
|
|||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
import app.lightning.impl.protos.lnd.lightning_pb2 as lightning__pb2
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name="walletunlocker.proto",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
import app.repositories.ln_impl.protos.lnd.walletunlocker_pb2 as walletunlocker__pb2
|
||||
import app.lightning.impl.protos.lnd.walletunlocker_pb2 as walletunlocker__pb2
|
||||
|
||||
|
||||
class WalletUnlockerStub(object):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ from fastapi.exceptions import HTTPException
|
|||
from starlette import status
|
||||
|
||||
from app.api.utils import call_script2, redis_get
|
||||
from app.models.lightning import (
|
||||
from app.lightning.impl.cln_grpc import LnNodeCLNgRPC
|
||||
from app.lightning.models import (
|
||||
Channel,
|
||||
FeeRevenue,
|
||||
ForwardSuccessEvent,
|
||||
|
|
@ -24,7 +25,6 @@ from app.models.lightning import (
|
|||
SendCoinsResponse,
|
||||
WalletBalance,
|
||||
)
|
||||
from app.lightning.impl.cln_grpc import LnNodeCLNgRPC
|
||||
|
||||
|
||||
class LnNodeCLNgRPCBlitz(LnNodeCLNgRPC):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue