lnd/lnrpc/devrpc/config_active.go
Elle Mouton 74a4b1922b
refactor: move graph related DB code to graph/db from channeldb
This is a pure refactor commit. It moves over all the graph related CRUD
code from `channeldb` to `graph/db`.
2024-11-28 13:36:13 +02:00

21 lines
643 B
Go

//go:build dev
// +build dev
package devrpc
import (
"github.com/btcsuite/btcd/chaincfg"
graphdb "github.com/lightningnetwork/lnd/graph/db"
"github.com/lightningnetwork/lnd/htlcswitch"
)
// Config is the primary configuration struct for the DEV RPC server. It
// contains all the items required for the rpc server to carry out its
// duties. Any fields with struct tags are meant to be parsed as normal
// configuration options, while if able to be populated, the latter fields MUST
// also be specified.
type Config struct {
ActiveNetParams *chaincfg.Params
GraphDB *graphdb.ChannelGraph
Switch *htlcswitch.Switch
}