walletrpc: export wallet kit sub server name

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.
This commit is contained in:
Oliver Gugger committed 2021-09-02 12:13:46 +02:00
1 parent 84035f1fb2
commit ae2e9541a4
4 files changed
+21 -14

No files matched your search

+7
View File
@@ -2,6 +2,13 @@
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.