mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-15 07:13:21 +01:00
multi: add RPC middleware interception
With the middleware handler in place, we now need to add a new gRPC interceptor to the interceptor chain that will send messages to the registered middlewares for each event that could be of interest to them.
This commit is contained in:
@@ -9,6 +9,13 @@ import (
|
||||
"github.com/lightningnetwork/lnd/lnwallet"
|
||||
)
|
||||
|
||||
const (
|
||||
// RegisterRPCMiddlewareURI is the full RPC method URI for the
|
||||
// middleware registration call. This is declared here rather than where
|
||||
// it's mainly used to avoid circular package dependencies.
|
||||
RegisterRPCMiddlewareURI = "/lnrpc.Lightning/RegisterRPCMiddleware"
|
||||
)
|
||||
|
||||
// RPCTransactionDetails returns a set of rpc transaction details.
|
||||
func RPCTransactionDetails(txns []*lnwallet.TransactionDetail) *TransactionDetails {
|
||||
txDetails := &TransactionDetails{
|
||||
|
||||
Reference in New Issue
Block a user