mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
e0e879c003
This means including <common/utils.h> where it was indirectly included. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
482 B
C
20 lines
482 B
C
#include "config.h"
|
|
#include <bitcoin/preimage.h>
|
|
#include <common/utils.h>
|
|
#include <wire/wire.h>
|
|
|
|
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage)
|
|
{
|
|
fromwire(cursor, max, preimage, sizeof(*preimage));
|
|
}
|
|
|
|
void towire_preimage(u8 **pptr, const struct preimage *preimage)
|
|
{
|
|
towire(pptr, preimage, sizeof(*preimage));
|
|
}
|
|
|
|
char *fmt_preimage(const tal_t *ctx, const struct preimage *preimage)
|
|
{
|
|
return tal_hexstr(ctx, preimage, sizeof(*preimage));
|
|
}
|