mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
short_channel_id: don't use bitfields.
I leave all the now-unnecessary accessors in place to avoid churn, but the use of bitfields has been more pain than help. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
6f14736803
commit
042d5d13f5
@@ -521,9 +521,9 @@ static enum watch_result funding_lockin_cb(struct channel *channel,
|
||||
/* If we restart, we could already have peer->scid from database */
|
||||
if (!channel->scid) {
|
||||
channel->scid = tal(channel, struct short_channel_id);
|
||||
channel->scid->blocknum = loc->blkheight;
|
||||
channel->scid->txnum = loc->index;
|
||||
channel->scid->outnum = channel->funding_outnum;
|
||||
mk_short_channel_id(channel->scid,
|
||||
loc->blkheight, loc->index,
|
||||
channel->funding_outnum);
|
||||
}
|
||||
tal_free(loc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user