// Copyright (c) 2016 Bitfury Group Limited // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php package routing import ( "fmt" "github.com/lightningnetwork/lnd/routing/rt" "github.com/lightningnetwork/lnd/routing/rt/graph" "github.com/lightningnetwork/lnd/lnwire" "github.com/roasbeef/btcd/wire" ) func channelOperationsFromRT(r *rt.RoutingTable) []lnwire.ChannelOperation { channels := r.AllChannels() chOps := make([]lnwire.ChannelOperation, len(channels)) for i:=0; i