From 59aae249dcdd55382c0e2a183af565fe120330a2 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 21 Aug 2017 22:54:42 -0700 Subject: [PATCH] channeldb: use lnwire.MilliSatoshi within the ChannelEdgePolicy struct --- channeldb/graph.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/channeldb/graph.go b/channeldb/graph.go index 87227ae00..0b8356892 100644 --- a/channeldb/graph.go +++ b/channeldb/graph.go @@ -1187,15 +1187,15 @@ type ChannelEdgePolicy struct { // MinHTLC is the smallest value HTLC this node will accept, expressed // in millisatoshi. - MinHTLC btcutil.Amount + MinHTLC lnwire.MilliSatoshi // FeeBaseMSat is the base HTLC fee that will be charged for forwarding // ANY HTLC, expressed in mSAT's. - FeeBaseMSat btcutil.Amount + FeeBaseMSat lnwire.MilliSatoshi // FeeProportionalMillionths is the rate that the node will charge for // HTLCs for each millionth of a satoshi forwarded. - FeeProportionalMillionths btcutil.Amount + FeeProportionalMillionths lnwire.MilliSatoshi // Node is the LightningNode that this directed edge leads to. Using // this pointer the channel graph can further be traversed. @@ -1918,17 +1918,17 @@ func deserializeChanEdgePolicy(r io.Reader, if err := binary.Read(r, byteOrder, &n); err != nil { return nil, err } - edge.MinHTLC = btcutil.Amount(n) + edge.MinHTLC = lnwire.MilliSatoshi(n) if err := binary.Read(r, byteOrder, &n); err != nil { return nil, err } - edge.FeeBaseMSat = btcutil.Amount(n) + edge.FeeBaseMSat = lnwire.MilliSatoshi(n) if err := binary.Read(r, byteOrder, &n); err != nil { return nil, err } - edge.FeeProportionalMillionths = btcutil.Amount(n) + edge.FeeProportionalMillionths = lnwire.MilliSatoshi(n) var pub [33]byte if _, err := r.Read(pub[:]); err != nil {