autopilot: remove unused channel field FundedAmt

This commit is contained in:
Johan T. Halseth 2020-10-02 13:15:41 +02:00
parent b6c161bcfc
commit 392d6ccc9f
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
2 changed files with 3 additions and 10 deletions

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

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