lnlink

iOS app for connecting to lightning nodes
git clone git://jb55.com/lnlink
Log | Files | Refs | Submodules | README | LICENSE

commit da3d69f4f15b2c932760b404bc91eebfac365cb7
parent 6e3e784be868d96aed0b3993dad30549018ee2ca
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 11 Mar 2022 20:06:33 -0800

update to latest lnsocket

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mlightninglink/RPC.swift | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lightninglink/RPC.swift b/lightninglink/RPC.swift @@ -234,16 +234,15 @@ func make_commando_msg<IN: Encodable>(authToken: String, operation: String, para return nil } var buf = [UInt8](repeating: 0, count: 65536) - var outlen: UInt16 = 0 - var ok: Bool = false + var outlen: Int32 = 0 authToken.withCString { token in operation.withCString { op in params_json.withCString { ps in - ok = commando_make_rpc_msg(op, ps, token, 1, &buf, Int32(buf.capacity), &outlen) != 0 + outlen = commando_make_rpc_msg(op, ps, token, 1, &buf, Int32(buf.capacity)) }}} - guard ok else { + guard outlen != 0 else { return nil }