core-lightning/daemon
Rusty Russell 8b666ea449 daemon: queue commands rather than executing them immediately.
When the only commands are via JSON, you might argue that we should
simply insist the user not operate on the same peer in parallel.  That
would suck, and also we need to handle the case of a command from
a timer (eg. HTLC expiry!) or a bitcoin event.

So, we need a queue for commands, but also we need to do some of the
command checking just before the command runs: the HTLC we're dealing
with might have vanished for example.

The current command is wrapped in an anonymous "curr_cmd" struct
for extra clarity.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-01-22 06:45:28 +10:30
..
jsmn@bd9bd55c3a daemon/jsmn: Add submodule for jsmn. 2016-01-22 06:37:13 +10:30
test daemon: routefail command. 2016-01-22 06:45:28 +10:30
.gitignore daemon: first code. 2016-01-22 06:41:47 +10:30
bitcoind.c bitcoind: try gettransaction as well as getrawtransaction. 2016-01-22 06:44:26 +10:30
bitcoind.h bitcoind: tell bitcoind_poll_transactions's callback if tx is a coinbase. 2016-01-22 06:41:49 +10:30
configdir.c daemon: configuration directory (default ~/.lightning). 2016-01-22 06:41:48 +10:30
configdir.h daemon: configuration directory (default ~/.lightning). 2016-01-22 06:41:48 +10:30
cryptopkt.c daemon: rename 'state' to 'dstate' everywhere. 2016-01-22 06:41:49 +10:30
cryptopkt.h daemon: encrypted communication (version 3) 2016-01-22 06:41:48 +10:30
dns.c dns: don't allow non-stream sockets. 2016-01-22 06:41:49 +10:30
dns.h daemon: rename 'state' to 'dstate' everywhere. 2016-01-22 06:41:49 +10:30
json.c json: routine to create a uint64_t field. 2016-01-22 06:41:48 +10:30
json.h json: routine to create a uint64_t field. 2016-01-22 06:41:48 +10:30
jsonrpc.c daemon: routefail command. 2016-01-22 06:45:28 +10:30
jsonrpc.h daemon: routefail command. 2016-01-22 06:45:28 +10:30
lightning-cli.c lightning-cli: give error message when lightningd produces non-object response. 2016-01-22 06:41:49 +10:30
lightningd.c daemon: --closing-fee 2016-01-22 06:45:27 +10:30
lightningd.h daemon: --closing-fee 2016-01-22 06:45:27 +10:30
log.c daemon: add helper to log hex. 2016-01-22 06:41:48 +10:30
log.h daemon: add helper to log hex. 2016-01-22 06:41:48 +10:30
Makefile daemon: add state.c. 2016-01-22 06:44:13 +10:30
netaddr.c daemon: netaddr 2016-01-22 06:41:48 +10:30
netaddr.h daemon: netaddr 2016-01-22 06:41:48 +10:30
packets.c daemon: routefail command. 2016-01-22 06:45:28 +10:30
peer.c daemon: queue commands rather than executing them immediately. 2016-01-22 06:45:28 +10:30
peer.h daemon: queue commands rather than executing them immediately. 2016-01-22 06:45:28 +10:30
pseudorand.c daemon: first code. 2016-01-22 06:41:47 +10:30
pseudorand.h daemon: first code. 2016-01-22 06:41:47 +10:30
secrets.c daemon: simple close support for the case of one side closing transaction. 2016-01-22 06:45:27 +10:30
secrets.h daemon: simple close support for the case of one side closing transaction. 2016-01-22 06:45:27 +10:30
timeout.c timeout: oneshot timer support. 2016-01-22 06:45:27 +10:30
timeout.h timeout: oneshot timer support. 2016-01-22 06:45:27 +10:30
watch.c daemon: --bitcoind-poll=<seconds> 2016-01-22 06:45:27 +10:30
watch.h daemon: rename 'state' to 'dstate' everywhere. 2016-01-22 06:41:49 +10:30