mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
b6b548a983
Suggested-by: Rusty Russell <@rustyrussell> Signed-off-by: Christian Decker <decker.christian@gmail.com>
13 lines
277 B
C
13 lines
277 B
C
#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);
|
|
}
|