core-lightning/lightningd
Rusty Russell bdd11e07fe chaintopology: fix 100 block subtraction.
We do a complicated dance because we don't know the current block
height before setting up the topology.

If we're starting at a particular block, we want to go back 100 blocks
before that to cover any reorgs.

If we're not (fresh startup), we still want to go back 100 blocks
because we don't bother handling a reorg which removes all the blocks
we know.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-16 13:07:12 +01:00
..
test wallet: use last_processed_block to determine scan start. 2018-02-16 13:07:12 +01:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoind: trivial cleanups. 2018-02-01 03:12:43 +00:00
bitcoind.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
build_utxos.c wallet: Use newindex primitive to generate change key index 2018-01-08 17:19:25 +01:00
build_utxos.h build_utxos: fix weight calculation, and make more accurate. 2017-12-20 12:56:15 +01:00
chaintopology.c chaintopology: fix 100 block subtraction. 2018-02-16 13:07:12 +01:00
chaintopology.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
channel.c wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
channel.h wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
dev_ping.c lightningd: split struct peer into struct peer and struct channel. 2018-02-14 11:31:58 +01:00
gossip_control.c gossip: Fix up some comments on PR #955 2018-02-11 11:40:59 +01:00
gossip_control.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
gossip_msg.c tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
gossip_msg.h tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
hsm_control.c hsm: give it its own log, so it has unique prefix. 2018-02-07 00:46:49 +00:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c Rename (almost) all destructors to destroy_<type>. 2018-02-14 11:31:58 +01:00
htlc_end.h htlc: keep channel pointer, not peer pointer. 2018-02-14 11:31:58 +01:00
invoice.c invoice: Return the invoice as a detailed error on expiration 2018-02-05 08:52:42 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
jsonrpc_errors.h Fix typos 2018-02-08 23:33:49 +01:00
jsonrpc.c jsonrpc: don't crash on multiple commands at once. 2018-02-16 12:56:48 +01:00
jsonrpc.h jsonprc: make json_get_params() fail the command, for better error reporting. 2018-02-02 00:05:00 +01:00
lightningd.c wallet: use last_processed_block to determine scan start. 2018-02-16 13:07:12 +01:00
lightningd.h lightningd: implement --daemon. 2018-02-16 13:02:41 +01:00
log_status.c status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
log.c json-rpc: Check for unprintable characters in JSON-RPC commands 2018-02-10 15:44:14 +01:00
log.h Use common loglevel JSON parser. 2018-02-07 00:46:49 +00:00
Makefile lightningd: split struct peer into struct peer and struct channel. 2018-02-14 11:31:58 +01:00
memdump.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
netaddress.c Fix a-vs-an typos 2018-02-08 22:49:34 +01:00
netaddress.h wireaddr: add ip[:port] parsing 2017-12-21 09:56:20 +00:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c lightningd: implement --daemon. 2018-02-16 13:02:41 +01:00
options.h lightningd: --deprecated-api option to turn off deprecated APIs. 2018-01-19 22:23:45 +00:00
pay.c htlc: keep channel pointer, not peer pointer. 2018-02-14 11:31:58 +01:00
pay.h lightningd: unify pay vs forward path when handling failures. 2017-06-23 09:29:42 +09:30
peer_control.c wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
peer_control.h wallet: don't implicitly remove peers, but do it explicitly. 2018-02-14 11:31:58 +01:00
peer_htlcs.c onchain: handle case where multiple HTLCs exist for same payment_hash. 2018-02-14 11:57:42 +01:00
peer_htlcs.h lightningd/peer_htlcs: remove remaining peer_ shims. 2018-02-14 11:31:58 +01:00
peer_state.h lightningd: split struct peer into struct peer and struct channel. 2018-02-14 11:31:58 +01:00
subd.c Rename (almost) all destructors to destroy_<type>. 2018-02-14 11:31:58 +01:00
subd.h subd: keep pointer to channel, not peer. 2018-02-14 11:31:58 +01:00
txfilter.c txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
txfilter.h txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
watch.c lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00
watch.h lightningd: bitcoind and topology routines take channel, not peer. 2018-02-14 11:31:58 +01:00