developer: add --dev-force-channel-secrets.

We don't have this on a per-channel basis (yet), but it's sufficient for testing
now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-07-17 07:15:14 +09:30
committed by neil saitug
parent 5879f6b4e0
commit 1e6eabf018
9 changed files with 153 additions and 44 deletions

View File

@@ -155,4 +155,14 @@ void towire_basepoints(u8 **pptr, const struct basepoints *b);
void fromwire_basepoints(const u8 **ptr, size_t *max,
struct basepoints *b);
/* For --dev-force-channel-secrets. */
#if DEVELOPER
extern struct secrets *dev_force_channel_secrets;
extern struct sha256 *dev_force_channel_secrets_shaseed;
#endif
/* Note: these abort if !DEVELOPER */
void towire_secrets(u8 **pptr, const struct secrets *s);
void fromwire_secrets(const u8 **ptr, size_t *max, struct secrets *s);
#endif /* LIGHTNING_COMMON_DERIVE_BASEPOINTS_H */