From 30daa539f0f48a61e615ffc67ef56e1f64299266 Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Sun, 6 May 2018 09:05:49 +0000 Subject: [PATCH] channel, opening_control: Make first_blocknum u32 The `new_channel` constructor accepts u32, and the `get_block_height` function returns u32, so the extra 32 bits is unuseable anyway. --- lightningd/channel.h | 2 +- lightningd/opening_control.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lightningd/channel.h b/lightningd/channel.h index 2684c15a5..57cfc1821 100644 --- a/lightningd/channel.h +++ b/lightningd/channel.h @@ -92,7 +92,7 @@ struct channel { /* Blockheight at creation, scans for funding confirmations * will start here */ - u64 first_blocknum; + u32 first_blocknum; /* Feerate range */ u32 min_possible_feerate, max_possible_feerate; diff --git a/lightningd/opening_control.c b/lightningd/opening_control.c index 254fb0438..9f833047d 100644 --- a/lightningd/opening_control.c +++ b/lightningd/opening_control.c @@ -49,7 +49,7 @@ struct uncommitted_channel { /* Blockheight at creation, scans for funding confirmations * will start here */ - u64 first_blocknum; + u32 first_blocknum; /* These are *not* filled in by new_uncommitted_channel: */