Skip to content

Commit

Permalink
glcli: Upgrade to the credentials interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed May 24, 2024
1 parent ae866c9 commit 90108a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/gl-testing/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pytest-xdist = "^2.5.0"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
rich = "^12.5.1"
pyln-testing = "=23.08"
pyln-client = "=23.11"
pyln-testing = "==24.02"
pyln-client = "==24.02"
pyln-grpc-proto = "^0.1"
protobuf = ">=3"
flaky = "^3"
Expand Down
4 changes: 2 additions & 2 deletions tools/glcli/glcli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def load_metadata(self, creds):
def __init__(self, network='testnet', start_hsmd=False):
self.creds = Creds()
self.load_metadata(self.creds)
self.scheduler = Scheduler(self.metadata['node_id'], network, creds=self.creds.creds)
self.scheduler = Scheduler(network, creds=self.creds.creds)
self.node = None
self.scheduler_chan = None
self.node_id = self.metadata['node_id']
Expand Down Expand Up @@ -278,7 +278,7 @@ def register(ctx, network, invite):
hex_node_id = hexlify(node_id).decode("ASCII")
logger.debug(f"Registering new node with node_id={hex_node_id} for {network}")
# Reinitialize the Scheduler with the passed network for register.
scheduler = Scheduler(node_id, network=network, creds=ctx.obj.scheduler.creds)
scheduler = Scheduler(network=network, creds=ctx.obj.scheduler.creds)
res = scheduler.register(signer.inner, invite_code=invite)

with open("credentials.gfs", "wb") as f:
Expand Down

0 comments on commit 90108a0

Please sign in to comment.