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
@@ -5,6 +5,7 @@ package chainrpc
|
||||
|
||||
import (
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/lnwallet"
|
||||
"github.com/lightningnetwork/lnd/macaroons"
|
||||
)
|
||||
|
||||
@@ -32,4 +33,7 @@ type Config struct {
|
||||
// notifier RPC server. The job of the chain notifier RPC server is
|
||||
// simply to proxy valid requests to the active chain notifier instance.
|
||||
ChainNotifier chainntnfs.ChainNotifier
|
||||
|
||||
// Chain provides access to the most up-to-date blockchain data.
|
||||
Chain lnwallet.BlockChainIO
|
||||
}
|
||||
Reference in new issue
Block a user