gossip: Enable the consistency check only when really pedantic

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-06-08 19:23:30 +02:00
parent 8a5bebed59
commit 2b5e1ee65f

View File

@@ -88,6 +88,7 @@ const u8 *next_broadcast(struct broadcast_state *bstate,
return NULL; return NULL;
} }
#ifdef PEDANTIC
static const struct pubkey * static const struct pubkey *
pubkey_keyof(const struct pubkey *pk) pubkey_keyof(const struct pubkey *pk)
{ {
@@ -172,3 +173,10 @@ struct broadcast_state *broadcast_state_check(struct broadcast_state *b,
uintmap_clear(&channels); uintmap_clear(&channels);
return b; return b;
} }
#else
struct broadcast_state *broadcast_state_check(struct broadcast_state *b,
const char *abortstr UNUSED)
{
return b;
}
#endif