mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
neutrinorpc: config
This commit is contained in:
parent
b6c5603e00
commit
0ce449f99b
18
lnrpc/neutrinorpc/config_active.go
Normal file
18
lnrpc/neutrinorpc/config_active.go
Normal file
@ -0,0 +1,18 @@
|
||||
//go:build neutrinorpc
|
||||
// +build neutrinorpc
|
||||
|
||||
package neutrinorpc
|
||||
|
||||
import (
|
||||
"github.com/lightninglabs/neutrino"
|
||||
)
|
||||
|
||||
// Config is the primary configuration struct for the neutrino RPC server. It
|
||||
// contains all the items required for the rpc server to carry out its
|
||||
// duties. The 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 {
|
||||
// ChainService is required to handle neutrino chain service requests.
|
||||
NeutrinoCS *neutrino.ChainService
|
||||
}
|
7
lnrpc/neutrinorpc/config_default.go
Normal file
7
lnrpc/neutrinorpc/config_default.go
Normal file
@ -0,0 +1,7 @@
|
||||
//go:build !neutrinorpc
|
||||
// +build !neutrinorpc
|
||||
|
||||
package neutrinorpc
|
||||
|
||||
// Config is empty for non-neutrinorpc builds.
|
||||
type Config struct{}
|
Loading…
x
Reference in New Issue
Block a user