mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 06:34:27 +01:00
We'll want to re-use the PSBT funding functionality from the wallet kit sub server in the main RPC server. To be able to dynamically obtain an instance of the wallet kit server we need to know its name under which it registers itself in the list of sub server. We export the name so we don't have to hard code it in the main server.
16 lines
507 B
Go
16 lines
507 B
Go
// +build !walletrpc
|
|
|
|
package walletrpc
|
|
|
|
const (
|
|
// SubServerName is the name of the sub rpc server. We'll use this name
|
|
// to register ourselves, and we also require that the main
|
|
// SubServerConfigDispatcher instance recognize as the name of our
|
|
SubServerName = "WalletKitRPC"
|
|
)
|
|
|
|
// Config is the primary configuration struct for the WalletKit RPC server.
|
|
// When the server isn't active (via the build flag), callers outside this
|
|
// package will see this shell of a config file.
|
|
type Config struct{}
|