core-lightning/daemon
Rusty Russell 56b0f03c5a peer: fix retransmission before open packet.
Re-enabling the next test revealed bugs: if we need to retransmit the
initial open_commit_sig packet, we currently tried to send it as an
UPDATE_COMMIT, which isn't allowed.  Fixing that revealed that if
we have to retransmit the initial open, we didn't do that either.

Thus the initial open should count towards the ack count, and we should
special case transmissions of 0 (pkt_open) and 1
(pkt_open_commit_sig).

We also save those early state changes to the database.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-11-09 08:04:28 +10:30
..
jsmn@bd9bd55c3a
test state_types: simplify open states. 2016-11-09 08:04:26 +10:30
.gitignore
bitcoind.c bitcoind_sendrawtx: hand error code to callback. 2016-11-07 23:00:02 +10:30
bitcoind.h bitcoind_sendrawtx: hand error code to callback. 2016-11-07 23:00:02 +10:30
chaintopology.c chaintopology: fix rebroadcast code. 2016-11-07 23:04:02 +10:30
chaintopology.h broadcast_tx: add optional failed callback. 2016-11-07 23:01:02 +10:30
channel.c channel: fix max feelevel calculation. 2016-10-07 14:00:17 +10:30
channel.h peer: give more sensible error if anchor is too large. 2016-09-13 12:40:32 +09:30
commit_tx.c commit_tx: free temporary wscript, rather than leaving attached to tx. 2016-11-04 11:17:03 +10:30
commit_tx.h channel: remove enum channel_side, rename htlc_side to side. 2016-08-31 16:06:32 +09:30
configdir.c config: different defaults for mainnet and testnet. 2016-10-07 14:00:18 +10:30
configdir.h config: different defaults for mainnet and testnet. 2016-10-07 14:00:18 +10:30
controlled_time.c daemon: rename all the low-level commands to dev- 2016-09-06 16:47:49 +09:30
controlled_time.h daemon: test restarting. 2016-08-18 14:25:14 +09:30
cryptopkt.c peer: free init packet. 2016-11-04 11:17:04 +10:30
cryptopkt.h peer: do logging before crypto is on. 2016-08-31 16:06:31 +09:30
db.c peer: fix retransmission before open packet. 2016-11-09 08:04:28 +10:30
db.h peer: fix retransmission before open packet. 2016-11-09 08:04:28 +10:30
dns.c dns: simplify code by reaping dns child as soon as we have answers. 2016-11-04 11:17:03 +10:30
dns.h
failure.c htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
failure.h htlc: save fail message in HTLC. 2016-08-31 14:51:41 +09:30
feechange_state.h daemon: handle feechange requests. 2016-08-26 15:31:19 +09:30
feechange.c feechange: fix db updates. 2016-11-01 21:33:27 +10:30
feechange.h db: save error, return it when we commit transaction. 2016-09-06 16:47:49 +09:30
htlc_state.h db.c: database API. 2016-08-18 14:25:13 +09:30
htlc.c db: save error, return it when we commit transaction. 2016-09-06 16:47:49 +09:30
htlc.h db: save error, return it when we commit transaction. 2016-09-06 16:47:49 +09:30
invoice.c invoice: print duplicate r value even if we choose it. 2016-11-01 21:34:58 +10:30
invoice.h db: save error, return it when we commit transaction. 2016-09-06 16:47:49 +09:30
irc_announce.c irc: Fix crash bug in node announcement parsing 2016-11-04 15:01:01 -07:00
irc_announce.h routing: Added IRC announcement glue 2016-09-07 23:49:39 +02:00
json.c getroute: add a risk factor. 2016-09-06 16:47:48 +09:30
json.h getroute: add a risk factor. 2016-09-06 16:47:48 +09:30
jsonrpc.c jsonrpc: free old connections 2016-11-01 21:34:57 +10:30
jsonrpc.h Merge remote-tracking branch 'origin/pr/44' 2016-10-17 12:31:19 +10:30
lightning-cli.c log: add netaddr 2016-11-04 11:17:03 +10:30
lightningd.c db: add --ignore-dbversion to override database checks. 2016-11-08 22:02:55 +10:30
lightningd.h db: add --ignore-dbversion to override database checks. 2016-11-08 22:02:55 +10:30
log.c log: add netaddr 2016-11-04 11:17:03 +10:30
log.h log: add netaddr 2016-11-04 11:17:03 +10:30
Makefile Makefile: clean gen_ files and ccan/config in make clean. 2016-11-09 08:04:27 +10:30
names.c names: move into daemon/ 2016-11-09 08:04:27 +10:30
names.h names: move into daemon/ 2016-11-09 08:04:27 +10:30
netaddr.c peer: keep addresses separately from peers. 2016-08-18 14:25:14 +09:30
netaddr.h peer: keep addresses separately from peers. 2016-08-18 14:25:14 +09:30
opt_time.c daemon: test restarting. 2016-08-18 14:25:14 +09:30
opt_time.h daemon: test restarting. 2016-08-18 14:25:14 +09:30
output_to_htlc.c channel: remove enum channel_side, rename htlc_side to side. 2016-08-31 16:06:32 +09:30
output_to_htlc.h channel: remove enum channel_side, rename htlc_side to side. 2016-08-31 16:06:32 +09:30
packets.c queue_pkt_open: take bool for API. 2016-11-09 08:04:28 +10:30
packets.h queue_pkt_open: take bool for API. 2016-11-09 08:04:28 +10:30
pay.c json_getroute: don't leak. 2016-11-04 11:17:04 +10:30
pay.h db: save and restore "sendpay" commands. 2016-09-05 13:29:48 +09:30
peer.c peer: fix retransmission before open packet. 2016-11-09 08:04:28 +10:30
peer.h peer: determine fees earlier. 2016-11-09 08:04:28 +10:30
pseudorand.c daemon: use siphash for hashes. 2016-07-01 12:00:17 +09:30
pseudorand.h daemon: use siphash for hashes. 2016-07-01 12:00:17 +09:30
routing.c Merge remote-tracking branch 'origin/pr/65' 2016-11-05 13:48:16 +10:30
routing.h Merge remote-tracking branch 'origin/pr/65' 2016-11-05 13:48:16 +10:30
secrets.c db.c: database API. 2016-08-18 14:25:13 +09:30
secrets.h db.c: database API. 2016-08-18 14:25:13 +09:30
sphinx.c Merge remote-tracking branch 'origin/pr/66' 2016-11-05 13:48:38 +10:30
sphinx.h sphinx: Implemented sphinx onion routing 2016-10-16 16:40:43 +02:00
state_types.h state.h state_types.h: move into daemon/ 2016-11-09 08:04:27 +10:30
state.h state.h state_types.h: move into daemon/ 2016-11-09 08:04:27 +10:30
timeout.c tal_tmpctx: clear marker for temporary contexts. 2016-11-01 21:34:27 +10:30
timeout.h
wallet.c wallet: use pubkey as API, not pointer. 2016-11-09 08:04:28 +10:30
wallet.h wallet: use pubkey as API, not pointer. 2016-11-09 08:04:28 +10:30
watch.c watch: make it easier for them to self-delete. 2016-07-01 12:00:17 +09:30
watch.h watch: make it easier for them to self-delete. 2016-07-01 12:00:17 +09:30