Browse Source
We're going to use these elsewhere/more widely so having them in common and using a more generic name is a obvious place to start.travis-experimental
niftynei
4 years ago
committed by
Rusty Russell
4 changed files with 18 additions and 15 deletions
@ -0,0 +1,12 @@ |
|||||
|
#ifndef LIGHTNING_COMMON_TX_ROLES_H |
||||
|
#define LIGHTNING_COMMON_TX_ROLES_H |
||||
|
|
||||
|
#include "config.h" |
||||
|
|
||||
|
#define NUM_TX_ROLES (TX_ACCEPTER + 1) |
||||
|
enum tx_role { |
||||
|
TX_INITIATOR, |
||||
|
TX_ACCEPTER, |
||||
|
}; |
||||
|
|
||||
|
#endif /* LIGHTNING_COMMON_TX_ROLES_H */ |
@ -1,10 +0,0 @@ |
|||||
#ifndef LIGHTNING_OPENINGD_DUAL_FUND_ROLES_H |
|
||||
#define LIGHTNING_OPENINGD_DUAL_FUND_ROLES_H |
|
||||
|
|
||||
#define NUM_DF_RULES (OPENER + 1) |
|
||||
enum dual_fund_roles { |
|
||||
ACCEPTER, |
|
||||
OPENER, |
|
||||
}; |
|
||||
|
|
||||
#endif /* LIGHTNING_OPENINGD_DUAL_FUND_ROLES_H */ |
|
Loading…
Reference in new issue