core-lightning/daemon
Rusty Russell 12b37d5f80 daemon: fix logic which determines how anchor output was spent.
We watch the anchor output, and separate it into different cases.
This is simpler with segwit (txids are known before sigs), but we also
had missed the case of our own commit transaction spend.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-05-03 11:28:50 +09:30
..
jsmn@bd9bd55c3a daemon/jsmn: Add submodule for jsmn. 2016-01-22 06:37:13 +10:30
test daemon/test: don't generate tiny dust HTLCs in testing. 2016-05-03 11:28:49 +09:30
.gitignore daemon: first code. 2016-01-22 06:41:47 +10:30
bitcoind.c utils: tal_hexstr() helper. 2016-05-03 11:28:49 +09:30
bitcoind.h Remove txid normalization. 2016-04-24 20:01:52 +09:30
chaintopology.c daemon: allow multiple watches on the same tx. 2016-05-03 11:28:49 +09:30
chaintopology.h peer: use tip mediantime for CSV timeout. 2016-04-24 19:52:35 +09: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
controlled_time.c daemon: make json_get_param() understand which args are compulsory. 2016-03-15 17:07:30 +10:30
controlled_time.h daemon: dev-mocktime command 2016-01-22 06:45:28 +10:30
cryptopkt.c check-bolt: check that comments in code match the specs. 2016-05-03 11:27:56 +09:30
cryptopkt.h protocol: move ack out of header into specific packets. 2016-04-11 16:31:43 +09: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 daemon: make json_get_param() understand which args are compulsory. 2016-03-15 17:07:30 +10:30
json.h daemon: make json_get_param() understand which args are compulsory. 2016-03-15 17:07:30 +10:30
jsonrpc.c daemon: dev-disconnect command. 2016-05-03 11:27:56 +09:30
jsonrpc.h daemon: dev-disconnect command. 2016-05-03 11:27:56 +09:30
lightning-cli.c daemon: dev-mocktime command 2016-01-22 06:45:28 +10:30
lightningd.c check-bolt: check that comments in code match the specs. 2016-05-03 11:27:56 +09:30
lightningd.h chaintopology: keep track of the bitcoin block topology. 2016-04-24 19:37:13 +09:30
log.c log: use real time for logs, even if dev-mocktime is used. 2016-04-24 19:35:13 +09:30
log.h daemon: add helper to log hex. 2016-01-22 06:41:48 +10:30
Makefile chaintopology: keep track of the bitcoin block topology. 2016-04-24 19:37:13 +09: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: don't code check for cleared commits in the main loop, use pending queue. 2016-05-03 11:28:49 +09:30
peer.c daemon: fix logic which determines how anchor output was spent. 2016-05-03 11:28:50 +09:30
peer.h daemon: don't code check for cleared commits in the main loop, use pending queue. 2016-05-03 11:28:49 +09: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 protocol: non-HTLC commit tx outputs are p2wpkh 2016-04-24 19:57:35 +09:30
secrets.h protocol: non-HTLC commit tx outputs are p2wpkh 2016-04-24 19:57:35 +09:30
timeout.c daemon: dev-mocktime command 2016-01-22 06:45:28 +10:30
timeout.h chaintopology: keep track of the bitcoin block topology. 2016-04-24 19:37:13 +09:30
wallet.c daemon/wallet: supply a p2wpkh address (as P2SH address). 2016-04-12 14:17:46 +09:30
wallet.h daemon: keep track of simple addresses for injecting funds. 2016-04-12 13:07:03 +09:30
watch.c daemon: allow multiple watches on the same tx. 2016-05-03 11:28:49 +09:30
watch.h watch: indicate which input of tx is spend the watch txo. 2016-05-03 11:28:49 +09:30