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
ac9aa975ad1e9952eac0fa3071d48fa3fa61bebf
palladum-lightning/common/wallet.c

14 lines
297 B
C
Raw Normal View History

check: make sure all files outside contrib/ include "config.h" first. And turn "" includes into full-path (which makes it easier to put config.h first, and finds some cases check-includes.sh missed previously). config.h sets _GNU_SOURCE which really needs to be done before any '#includes': we mainly got away with it with glibc, but other platforms like Alpine may have stricter requirements. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-12-04 21:53:56 +10:30
#include "config.h"
wallet: Rip out the txtypes type in favor of enum wallet_tx_type Suggested-by: Rusty Russell <@rustyrussell> Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-06-07 11:38:20 +02:00
#include <common/wallet.h>
enum wallet_tx_type fromwire_wallet_tx_type(const u8 **cursor, size_t *max)
{
enum wallet_tx_type type = fromwire_u16(cursor, max);
return type;
}
void towire_wallet_tx_type(u8 **pptr, const enum wallet_tx_type type)
{
towire_u16(pptr, type);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 3285ms Template: 24ms
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