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;