Print something for custom messages in C++ demo
authorMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 00:13:01 +0000 (00:13 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 6 Mar 2023 22:48:29 +0000 (22:48 +0000)
lightning-c-bindings/demo.cpp

index b6a4c722f53aa3aefef8190abeea23cfbfe261ba..7c56dd769aae1eb4670bf66732c458e3e5bcab59 100644 (file)
@@ -431,7 +431,7 @@ LDKCVec_u8Z custom_msg_bytes(const void *this_arg) {
 }
 LDKStr custom_msg_debug(const void *this_arg) {
        return LDKStr {
-               .chars = NULL, .len = 0, .chars_is_owned = false
+               .chars = (const unsigned char*) "Custom Message", .len = 14, .chars_is_owned = false
        };
 }