Rusty Russell
8 years ago
4 changed files with 8 additions and 17 deletions
@ -1,19 +1,10 @@ |
|||||
#ifndef LIGHTNING_STATE_H |
#ifndef LIGHTNING_DAEMON_STATE_H |
||||
#define LIGHTNING_STATE_H |
#define LIGHTNING_DAEMON_STATE_H |
||||
#include "config.h" |
#include "config.h" |
||||
|
|
||||
#include <ccan/tal/tal.h> |
#include "daemon/state_types.h" |
||||
#include <state_types.h> |
|
||||
#include <stdbool.h> |
#include <stdbool.h> |
||||
|
|
||||
/*
|
|
||||
* This is the core state machine. |
|
||||
* |
|
||||
* Calling the state machine updates updates peer->state, and may call |
|
||||
* various peer_ callbacks. It also returns the status of the current |
|
||||
* command. |
|
||||
*/ |
|
||||
|
|
||||
static inline bool state_is_error(enum state s) |
static inline bool state_is_error(enum state s) |
||||
{ |
{ |
||||
return s >= STATE_ERR_BREAKDOWN && s <= STATE_ERR_INTERNAL; |
return s >= STATE_ERR_BREAKDOWN && s <= STATE_ERR_INTERNAL; |
Loading…
Reference in new issue