From 86313383a7c9dd9fa3083b12b095c56f8a45fa6d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 16 Sep 2017 09:03:06 +0930 Subject: [PATCH] type_to_string: support ripemd160. Signed-off-by: Rusty Russell --- common/type_to_string.c | 5 ++++- common/type_to_string.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/type_to_string.c b/common/type_to_string.c index f61da7244..c512d42f7 100644 --- a/common/type_to_string.c +++ b/common/type_to_string.c @@ -1,10 +1,13 @@ +#include +#include #include #include #include #include -/* We need at least one, and this is in CCAN so register it here. */ +/* We need at least one, and these are in CCAN so register it here. */ REGISTER_TYPE_TO_HEXSTR(sha256); +REGISTER_TYPE_TO_HEXSTR(ripemd160); char *type_to_string_(const tal_t *ctx, const char *typename, union printable_types u) diff --git a/common/type_to_string.h b/common/type_to_string.h index 04c812c85..02f63e14a 100644 --- a/common/type_to_string.h +++ b/common/type_to_string.h @@ -3,7 +3,6 @@ #include "config.h" #include "utils.h" #include -#include #include /* This must match the type_to_string_ cases. */ @@ -11,6 +10,7 @@ union printable_types { const struct pubkey *pubkey; const struct sha256_double *sha256_double; const struct sha256 *sha256; + const struct ripemd160 *ripemd160; const struct rel_locktime *rel_locktime; const struct abs_locktime *abs_locktime; const struct bitcoin_tx *bitcoin_tx;