lnsocket

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

commit c9a2b16c613f2eacfb1d80b0b638cc47561b20f1
parent 9f4c319750ae1d5b35cb378c1644898246ba17b2
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  7 Jul 2022 09:22:54 -0700

rust: now that we're using recv it should be offset 8

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

Diffstat:
Mrust/lib.rs | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/rust/lib.rs b/rust/lib.rs @@ -61,10 +61,7 @@ mod tests { assert_eq!(res_recv, 1); let iptr = uptr as *mut i8; if typ == 0x594d { - CStr::from_ptr(iptr.offset(10)) - .to_str() - .unwrap() - .to_string() + CStr::from_ptr(iptr.offset(8)).to_str().unwrap().to_string() } else { "other".to_string() }