2022-01-19 20:51:10 +01:00
|
|
|
//go:build dev
|
|
|
|
// +build dev
|
|
|
|
|
|
|
|
package devrpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/btcsuite/btcd/chaincfg"
|
|
|
|
"github.com/lightningnetwork/lnd/channeldb"
|
2024-03-12 12:16:01 -07:00
|
|
|
"github.com/lightningnetwork/lnd/htlcswitch"
|
2022-01-19 20:51:10 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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 *channeldb.ChannelGraph
|
2024-03-12 12:16:01 -07:00
|
|
|
Switch *htlcswitch.Switch
|
2022-01-19 20:51:10 +01:00
|
|
|
}
|