mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +01:00
log: ability to log struct rval.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -326,7 +326,8 @@ static char *to_string_(const tal_t *ctx,
|
||||
h->src ? to_string(ctx, lr, struct pubkey,
|
||||
h->src->peer->id)
|
||||
: "local");
|
||||
}
|
||||
} else if (streq(structname, "struct rval"))
|
||||
s = tal_hexstr(ctx, u.rval, sizeof(*u.rval));
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ union loggable_structs {
|
||||
const struct abs_locktime *abs_locktime;
|
||||
const struct bitcoin_tx *bitcoin_tx;
|
||||
const struct htlc *htlc;
|
||||
const struct rval *rval;
|
||||
const char *charp_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user