mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
lightningd/lightningd: add rpc interface.
daemon/lightning-cli works with this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
542e6844f7
commit
0444d68197
@ -11,6 +11,7 @@ default: lightningd-all
|
||||
LIGHTNINGD_OLD_SRC := \
|
||||
daemon/configdir.c \
|
||||
daemon/json.c \
|
||||
daemon/jsonrpc.c \
|
||||
daemon/log.c \
|
||||
daemon/options.c \
|
||||
daemon/opt_time.c \
|
||||
|
@ -36,27 +36,24 @@ struct peer *find_peer(struct lightningd_state *dstate, const struct pubkey *id)
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
struct json_result *null_response(const tal_t *ctx)
|
||||
{
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
void command_success(struct command *cmd, struct json_result *result)
|
||||
{
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
void command_fail(struct command *cmd, const char *fmt, ...)
|
||||
{
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
size_t get_tx_depth(struct lightningd_state *dstate,
|
||||
const struct sha256_double *txid)
|
||||
{
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
void debug_dump_peers(struct lightningd_state *dstate);
|
||||
void debug_dump_peers(struct lightningd_state *dstate)
|
||||
{
|
||||
FIXME_IMPLEMENT();
|
||||
}
|
||||
|
||||
u32 get_block_height(struct lightningd_state *dstate)
|
||||
{
|
||||
/* FIXME_IMPLEMENT(); */
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include <daemon/packets.h>
|
||||
void queue_pkt_nested(struct peer *peer,
|
||||
int type,
|
||||
@ -169,17 +166,16 @@ int main(int argc, char *argv[])
|
||||
/* Set up HSM. */
|
||||
hsm_init(ld, newdir);
|
||||
|
||||
#if 0
|
||||
/* Create RPC socket (if any) */
|
||||
setup_jsonrpc(&ld->dstate, ld->dstate.rpc_filename);
|
||||
|
||||
#if 0
|
||||
/* Initialize block topology. */
|
||||
setup_topology(dstate);
|
||||
|
||||
/* Load peers from database. */
|
||||
db_load_peers(dstate);
|
||||
|
||||
/* Create RPC socket (if any) */
|
||||
setup_jsonrpc(dstate, dstate->rpc_filename);
|
||||
|
||||
/* Ready for connections from peers. */
|
||||
setup_listeners(dstate);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user