mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-12 01:24:23 +01:00
cln-grpc: Map AmountOrAll and AmountOrAny
This commit is contained in:
committed by
Rusty Russell
parent
04e7e285d7
commit
bba68e2136
@@ -5,6 +5,7 @@ from pyln.testing.utils import env, TEST_NETWORK, wait_for
|
||||
from ephemeral_port_reserve import reserve
|
||||
import grpc
|
||||
import node_pb2 as nodepb
|
||||
from primitives_pb2 import AmountOrAny
|
||||
import pytest
|
||||
import subprocess
|
||||
|
||||
@@ -101,6 +102,15 @@ def test_grpc_connect(node_factory):
|
||||
response = stub.ListFunds(nodepb.ListfundsRequest())
|
||||
print(response)
|
||||
|
||||
inv = stub.Invoice(nodepb.InvoiceRequest(
|
||||
msatoshi=AmountOrAny(any=True),
|
||||
description="hello",
|
||||
label="lbl1",
|
||||
preimage=b"\x00" * 32,
|
||||
cltv=24
|
||||
))
|
||||
print(inv)
|
||||
|
||||
|
||||
def test_grpc_generate_certificate(node_factory):
|
||||
"""Test whether we correctly generate the certificates.
|
||||
|
||||
Reference in New Issue
Block a user