lnwire: add todo for changing to SatPerKWeight for fee rates

This commit is contained in:
Johan T. Halseth 2018-02-23 10:55:51 +01:00
parent b9f09a666d
commit 2db5e56754
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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
}