core-lightning/gossipd
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 wallet: keep a list of unreleased transactions. 2019-06-06 04:47:44 +00:00
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_constants.h Use node_id everywhere for nodes. 2019-04-09 12:37:16 -07:00
gossip_peerd_wire.csv gossipd: don't send gossip stream, let per-peer daemons read it themselves. 2019-06-04 01:29:39 +00:00
gossip_store.c gossip_store: don't leave dangling channel_announce if we truncate. 2019-06-04 01:29:39 +00:00
gossip_store.csv gossipd: erase old entries from the store, don't just append. 2019-06-04 01:29:39 +00:00
gossip_store.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_wire.csv gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
gossipd.c gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
Makefile gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
routing.c gossipd: don't charge ourselves fees when calculating route. 2019-06-11 23:19:11 +00:00
routing.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00