mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
hsmd: use debug for backtraces.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a21e31b2b2
commit
7e1154e1ec
2 changed files with 10 additions and 2 deletions
|
@ -27,6 +27,7 @@ LIGHTNINGD_HSM_OBJS := $(LIGHTNINGD_HSM_SRC:.c=.o)
|
|||
HSMD_COMMON_OBJS := \
|
||||
common/bip32.o \
|
||||
common/daemon_conn.o \
|
||||
common/debug.o \
|
||||
common/funding_tx.o \
|
||||
common/key_derive.o \
|
||||
common/msg_queue.o \
|
||||
|
|
11
hsmd/hsm.c
11
hsmd/hsm.c
|
@ -3,7 +3,6 @@
|
|||
#include <bitcoin/pubkey.h>
|
||||
#include <bitcoin/script.h>
|
||||
#include <bitcoin/tx.h>
|
||||
#include <ccan/breakpoint/breakpoint.h>
|
||||
#include <ccan/container_of/container_of.h>
|
||||
#include <ccan/crypto/hkdf_sha256/hkdf_sha256.h>
|
||||
#include <ccan/endian/endian.h>
|
||||
|
@ -15,6 +14,7 @@
|
|||
#include <ccan/read_write_all/read_write_all.h>
|
||||
#include <ccan/take/take.h>
|
||||
#include <common/daemon_conn.h>
|
||||
#include <common/debug.h>
|
||||
#include <common/funding_tx.h>
|
||||
#include <common/status.h>
|
||||
#include <common/utils.h>
|
||||
|
@ -640,6 +640,12 @@ static struct io_plan *control_received_req(struct io_conn *conn,
|
|||
}
|
||||
|
||||
#ifndef TESTING
|
||||
/* FIXME: This is used by debug.c, but doesn't apply to us. */
|
||||
extern void dev_disconnect_init(int fd);
|
||||
void dev_disconnect_init(int fd)
|
||||
{
|
||||
}
|
||||
|
||||
static void master_gone(struct io_conn *unused, struct daemon_conn *dc)
|
||||
{
|
||||
/* Can't tell master, it's gone. */
|
||||
|
@ -655,7 +661,8 @@ int main(int argc, char *argv[])
|
|||
exit(0);
|
||||
}
|
||||
|
||||
breakpoint();
|
||||
subdaemon_debug(argc, argv);
|
||||
|
||||
secp256k1_ctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY
|
||||
| SECP256K1_CONTEXT_SIGN);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue