From 392d6ccc9f212a3c3b8fba7c9cc18864159812dc Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 2 Oct 2020 13:15:41 +0200 Subject: [PATCH] autopilot: remove unused channel field FundedAmt --- autopilot/graph.go | 7 +++---- autopilot/interface.go | 6 ------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/autopilot/graph.go b/autopilot/graph.go index 6ef6d61da..8ea454953 100644 --- a/autopilot/graph.go +++ b/autopilot/graph.go @@ -100,10 +100,9 @@ func (d dbNode) ForEachChannel(cb func(ChannelEdge) error) error { edge := ChannelEdge{ Channel: Channel{ - ChanID: lnwire.NewShortChanIDFromInt(ep.ChannelID), - Capacity: ei.Capacity, - FundedAmt: ei.Capacity, - Node: NodeID(ep.Node.PubKeyBytes), + ChanID: lnwire.NewShortChanIDFromInt(ep.ChannelID), + Capacity: ei.Capacity, + Node: NodeID(ep.Node.PubKeyBytes), }, Peer: dbNode{ tx: tx, diff --git a/autopilot/interface.go b/autopilot/interface.go index 21c51c9f4..04de98f90 100644 --- a/autopilot/interface.go +++ b/autopilot/interface.go @@ -47,12 +47,6 @@ type Channel struct { // Capacity is the capacity of the channel expressed in satoshis. Capacity btcutil.Amount - // FundedAmt is the amount the local node funded into the target - // channel. - // - // TODO(roasbeef): need this? - FundedAmt btcutil.Amount - // Node is the peer that this channel has been established with. Node NodeID