mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
state: include daemon/peer (only if !TEST_COVERAGE).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
3
state.c
3
state.c
@@ -1,4 +1,7 @@
|
|||||||
#include <ccan/build_assert/build_assert.h>
|
#include <ccan/build_assert/build_assert.h>
|
||||||
|
#ifndef TEST_STATE_COVERAGE
|
||||||
|
#include <daemon/peer.h>
|
||||||
|
#endif
|
||||||
#include <state.h>
|
#include <state.h>
|
||||||
|
|
||||||
static inline bool high_priority(enum state state)
|
static inline bool high_priority(enum state state)
|
||||||
|
|||||||
@@ -927,6 +927,7 @@ bool committed_to_htlcs(const struct peer *peer)
|
|||||||
return peer->num_htlcs_to_them != 0 || peer->num_htlcs_to_us != 0;
|
return peer->num_htlcs_to_them != 0 || peer->num_htlcs_to_us != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_STATE_COVERAGE 1
|
||||||
#include "state.c"
|
#include "state.c"
|
||||||
#include <ccan/tal/tal.h>
|
#include <ccan/tal/tal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user