chainrpc: add chainkit RPC service
New endpoints: GetBlock, GetBestBlock, and GetBlockHash.
This commit is contained in:
12 files changed
+1450
-7
No files matched your search
@@ -45,9 +45,14 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
case config.MacService != nil && config.NetworkDir == "":
|
||||
return nil, nil, fmt.Errorf("NetworkDir must be set to create " +
|
||||
"chainrpc")
|
||||
|
||||
case config.ChainNotifier == nil:
|
||||
return nil, nil, fmt.Errorf("ChainNotifier must be set to " +
|
||||
"create chainrpc")
|
||||
|
||||
case config.Chain == nil:
|
||||
return nil, nil, fmt.Errorf("field Chain must be set to " +
|
||||
"create chainrpc")
|
||||
}
|
||||
|
||||
return New(config)
|
||||
|
||||
Reference in new issue
Block a user