state: include daemon/peer (only if !TEST_COVERAGE).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b04392609a
commit
5ac1d5df00
3
state.c
3
state.c
@ -1,4 +1,7 @@
|
||||
#include <ccan/build_assert/build_assert.h>
|
||||
#ifndef TEST_STATE_COVERAGE
|
||||
#include <daemon/peer.h>
|
||||
#endif
|
||||
#include <state.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
#define TEST_STATE_COVERAGE 1
|
||||
#include "state.c"
|
||||
#include <ccan/tal/tal.h>
|
||||
#include <stdio.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user