gossip: Store channel capacity in the routing table

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-03-05 23:32:04 +01:00
committed by Rusty Russell
parent 5690783148
commit 2abf72e7df
3 changed files with 7 additions and 1 deletions

View File

@@ -61,6 +61,8 @@ struct chan {
/* Is this a public channel, or was it only added locally? */
bool public;
u64 satoshis;
};
struct node {
@@ -210,6 +212,7 @@ handle_channel_announcement(struct routing_state *rstate,
*/
bool handle_pending_cannouncement(struct routing_state *rstate,
const struct short_channel_id *scid,
const u64 satoshis,
const u8 *txscript);
void handle_channel_update(struct routing_state *rstate, const u8 *update);
void handle_node_announcement(struct routing_state *rstate, const u8 *node);