mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-24 22:58:18 +01:00
This is a pure refactor commit. It moves over all the graph related CRUD code from `channeldb` to `graph/db`.
21 lines
643 B
Go
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
|
|
}
|