lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commit c60713d3d331d7f13c900f90fbc52cdf8ee0f725
parent b2debd2504fababe70f0d3e4995fb2a90694b7f7
Author: Luca Vaccaro <me@lvaccaro.com>
Date:   Tue,  5 Jul 2022 07:02:24 +0200

Add nullable onion proxy on rust example

Signed-off-by: Luca Vaccaro <me@lvaccaro.com>

Diffstat:
Mrust/lib.rs | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/rust/lib.rs b/rust/lib.rs @@ -28,7 +28,12 @@ mod tests { let res_connect = { let c_node_id = CString::new(node_id).unwrap(); let c_host = CString::new(host).unwrap(); - lnsocket_connect(&mut socket, c_node_id.as_ptr(), c_host.as_ptr()) + lnsocket_connect_tor( + &mut socket, + c_node_id.as_ptr(), + c_host.as_ptr(), + std::ptr::null(), + ) }; assert_eq!(res_connect, 1);