daemon: primitive privkey handling.

Eventually this will be in a separate process, etc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:41:48 +10:30
parent 29c8611e53
commit 9449f387ac
5 changed files with 117 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include "lightningd.h"
#include "log.h"
#include "peer.h"
#include "secrets.h"
#include "timeout.h"
#include <ccan/container_of/container_of.h>
#include <ccan/err/err.h>
@@ -104,7 +105,10 @@ int main(int argc, char *argv[])
/* Set up connections from peers. */
setup_listeners(state, portnum);
/* Set up node ID and private key. */
secrets_init(state);
log_info(state->base_log, "Hello world!");
/* If io_loop returns NULL, either a timer expired, or all fds closed */