mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
This means including <common/utils.h> where it was indirectly included. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
482 B
C
19 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));
|
|
}
|