core-lightning/lightningd
Rusty Russell ab31f40aa2 gossipd: don't charge ourselves fees when calculating route.
This means there's now a semantic difference between the default `fromid`
and setting `fromid` explicitly to our own node_id.  In the default case,
it means we don't charge ourselves fees on the route.

This means we can spend the full channel balance.

We still want to consider the pricing of local channels, however:
there's a *reason* to discount one over another, and that is to bias
things.  So we add the first-hop fee to the *risk* value instead.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-11 23:19:11 +00:00
..
test lightningd: make 'spendable_msatoshi' more realistic. 2019-06-11 23:19:11 +00:00
.gitignore
bitcoind.c Remove Sensitive RPC Data from Logs (#2520) 2019-04-03 03:06:06 +00:00
bitcoind.h lightningd: allow more than one bitcoind request at once, run multiple queues. 2018-09-19 13:21:21 +02:00
chaintopology.c chaintopology: Annotate transactions as deposits if we owned outputs 2019-06-08 02:58:27 +00:00
chaintopology.h openingd/json_fund_channel: 2019-01-29 04:50:01 +00:00
channel_control.c lightningd/channel_control logline fixup 2019-06-07 10:34:34 +02:00
channel_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
channel_state.h lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
channel.c wallet: Rip out the txtypes type in favor of enum wallet_tx_type 2019-06-08 02:58:27 +00:00
channel.h wallet: Rip out the txtypes type in favor of enum wallet_tx_type 2019-06-08 02:58:27 +00:00
closing_control.c channel: Along with the last_tx also remember its type 2019-06-08 02:58:27 +00:00
closing_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
connect_control.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
connect_control.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
gossip_control.c gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
gossip_control.h
gossip_msg.c listchannels: add htlc_minimum_msat and htlc_maximum_msat fields. 2019-06-11 23:19:11 +00:00
gossip_msg.h listchannels: add htlc_minimum_msat and htlc_maximum_msat fields. 2019-06-11 23:19:11 +00:00
hsm_control.c Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
hsm_control.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
htlc_end.c wallet: Add received_time to htlc_in for forwarding times 2019-04-10 23:48:39 +00:00
htlc_end.h wallet: Add received_time to htlc_in for forwarding times 2019-04-10 23:48:39 +00:00
invoice.c lightningd: fix uninitialized variable in DEVELOPER path 2019-06-03 00:07:11 +00:00
invoice.h lightningd: move local invoice resolution into invoice.c function. 2019-04-12 03:32:48 +00:00
io_loop_with_timers.c lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
io_loop_with_timers.h lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it. 2019-05-31 17:57:10 +02:00
json_stream.c plugins: do I/O logging. 2019-05-31 18:36:38 +02:00
json_stream.h plugins: do I/O logging. 2019-05-31 18:36:38 +02:00
json.c json: Add wrapper to add a secret to a JSON result 2019-06-09 02:40:34 +00:00
json.h json: Add wrapper to add a secret to a JSON result 2019-06-09 02:40:34 +00:00
jsonrpc.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
jsonrpc.h jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
lightningd.c log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
lightningd.h lightningd: hang up on clients if they make us run out of memory. 2019-05-22 11:28:44 +00:00
log_status.c log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
log_status.h
log.c log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
log.h log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
Makefile lightningd: make 'spendable_msatoshi' more realistic. 2019-06-11 23:19:11 +00:00
memdump.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
memdump.h lightningd: add code to search strmaps for memleak detection. 2019-02-07 20:33:50 +00:00
notification.c plugin: Add new notification type: warning 2019-06-07 01:23:51 +00:00
notification.h plugin: Add new notification type: warning 2019-06-07 01:23:51 +00:00
onchain_control.c wallet: Rip out the txtypes type in favor of enum wallet_tx_type 2019-06-08 02:58:27 +00:00
onchain_control.h
opening_control.c openingd: Annotate our own funding transaction 2019-06-08 02:58:27 +00:00
opening_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
options.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
options.h opts: Split early from non-early args so plugins can register theirs 2018-11-13 00:44:50 +01:00
pay.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
pay.h lightningd: move pay internals back into pay.c 2019-01-23 22:08:08 +01:00
peer_control.c lightningd: make 'spendable_msatoshi' more realistic. 2019-06-11 23:19:11 +00:00
peer_control.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
peer_htlcs.c plugin: Use the json_add_secret wrapper to add the shared_secret 2019-06-09 02:40:34 +00:00
peer_htlcs.h lightningd: move local invoice resolution into invoice.c function. 2019-04-12 03:32:48 +00:00
ping.c jsonrpc: Add a category field to commands. 2019-06-03 00:02:25 +00:00
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin_hook.c plugin: fix printing of bad plugin responses. 2019-05-31 18:36:38 +02:00
plugin_hook.h lightningd: remove deserialize step for plugin hooks. 2019-04-23 15:26:42 +02:00
plugin.c log: add 'warning' notification when log 2019-06-07 01:23:51 +00:00
plugin.h plugins: do I/O logging. 2019-05-31 18:36:38 +02:00
subd.c common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
subd.h common/per_per_state: generalize lightningd/peer_comm Part 1 2019-06-04 01:29:39 +00:00
watch.c chaintopology: add REORG to logline when tx watch is fired after reorg 2019-05-27 13:29:32 +02:00
watch.h txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00