Logo
Explore Help
Sign In
davide/palladum-lightning
1
0
Fork 0
You've already forked palladum-lightning
Code Issues Pull Requests Actions 5 Packages Projects Releases Wiki Activity
Files
6dec2ed1c124d9800aef0be4dfda79ee6b295eeb
palladum-lightning/devtools/decodemsg.c

10 lines
192 B
C
Raw Normal View History

devtools/decodemsg: new tool. $ ./devtools/decodemsg 00110000000000000000000000000000000000000000000000000000000000000000000e496e7465726e616c206572726f72 WIRE_ERROR: channel_id=0000000000000000000000000000000000000000000000000000000000000000 data=[Internal error] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-01 10:38:37 +10:30
#include <common/utils.h>
#include <devtools/gen_print_wire.h>
Mark intentionally unused parameters as such (with "UNUSED")
2018-02-21 16:06:07 +01:00
int main(int argc UNUSED, char *argv[])
devtools/decodemsg: new tool. $ ./devtools/decodemsg 00110000000000000000000000000000000000000000000000000000000000000000000e496e7465726e616c206572726f72 WIRE_ERROR: channel_id=0000000000000000000000000000000000000000000000000000000000000000 data=[Internal error] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-01 10:38:37 +10:30
{
u8 *m = tal_hexdata(NULL, argv[1], strlen(argv[1]));
print_message(m);
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 358ms Template: 29ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API