commit 1991772fac28047b2480a5ce80ba57f50728b940
parent 9808d38797600567a2260db488d0f8a826369763
Author: William Casarin <jb55@jb55.com>
Date: Sat, 18 Aug 2018 10:24:39 -0700
add short nodeid to print_channel_info
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/update.c b/update.c
@@ -152,11 +152,15 @@ static void physics(struct ln *ln, double dt)
static void print_channel_info(struct channel *chan)
{
- printf("%u:%u:%hu %s -> %s (%f bits)\n",
+ printf("%u:%u:%hu %.*s %s -> %.*s %s (%f bits)\n",
chan->short_channel_id.blocknum,
chan->short_channel_id.txnum,
chan->short_channel_id.outnum,
+ 8,
+ chan->nodes[0]->id,
chan->nodes[0]->alias,
+ 8,
+ chan->nodes[1]->id,
chan->nodes[1]->alias,
chan->satoshis / 100.0
);