mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
gossip: Enable the consistency check only when really pedantic
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user