From 2db5e56754a2d9818dde5851c05821b1fe793bf9 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 23 Feb 2018 10:55:51 +0100 Subject: [PATCH] lnwire: add todo for changing to SatPerKWeight for fee rates --- lnwire/open_channel.go | 3 +++ lnwire/update_fee.go | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lnwire/open_channel.go b/lnwire/open_channel.go index 950752eb..35d80038 100644 --- a/lnwire/open_channel.go +++ b/lnwire/open_channel.go @@ -68,6 +68,9 @@ type OpenChannel struct { // FeePerKiloWeight is the initial fee rate that the initiator suggests // for both commitment transaction. This value is expressed in sat per // kilo-weight. + // + // TODO(halseth): make SatPerKWeight when fee estimation is in own + // package. Currently this will cause an import cycle. FeePerKiloWeight uint32 // CsvDelay is the number of blocks to use for the relative time lock diff --git a/lnwire/update_fee.go b/lnwire/update_fee.go index 9937c3ab..255028dc 100644 --- a/lnwire/update_fee.go +++ b/lnwire/update_fee.go @@ -1,6 +1,8 @@ package lnwire -import "io" +import ( + "io" +) // UpdateFee is the message the channel initiator sends to the other peer if // the channel commitment fee needs to be updated. @@ -10,6 +12,9 @@ type UpdateFee struct { // FeePerKw is the fee-per-kw on commit transactions that the sender of // this message wants to use for this channel. + // + // TODO(halseth): make SatPerKWeight when fee estimation is moved to + // own package. Currently this will cause an import cycle. FeePerKw uint32 }