db: Create table for HTLCs
Also added a small warning to one of the used enums not to reorder or insert values. They'd break the update path. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
a4967d74f1
commit
3dda72c885
@@ -2,6 +2,10 @@
|
||||
#define LIGHTNING_COMMON_HTLC_STATE_H
|
||||
#include "config.h"
|
||||
|
||||
/*
|
||||
* /!\ The generated enum values are used in the database, DO NOT
|
||||
* reorder or insert new values (appending at the end is ok) /!\
|
||||
*/
|
||||
enum htlc_state {
|
||||
/* When we add a new htlc, it goes in this order. */
|
||||
SENT_ADD_HTLC,
|
||||
|
||||
Reference in New Issue
Block a user