mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
lnrpc: expose forwarding channel for htlcs in ListChannels
This commit is contained in:
@@ -63,6 +63,18 @@ type CircuitModifier interface {
|
||||
DeleteCircuits(inKeys ...CircuitKey) error
|
||||
}
|
||||
|
||||
// CircuitLookup is a common interface used to lookup information that is stored
|
||||
// in the circuit map.
|
||||
type CircuitLookup interface {
|
||||
// LookupCircuit queries the circuit map for the circuit identified by
|
||||
// inKey.
|
||||
LookupCircuit(inKey CircuitKey) *PaymentCircuit
|
||||
|
||||
// LookupOpenCircuit queries the circuit map for a circuit identified
|
||||
// by its outgoing circuit key.
|
||||
LookupOpenCircuit(outKey CircuitKey) *PaymentCircuit
|
||||
}
|
||||
|
||||
// CircuitFwdActions represents the forwarding decision made by the circuit
|
||||
// map, and is returned from CommitCircuits. The sequence of circuits provided
|
||||
// to CommitCircuits is split into three sub-sequences, allowing the caller to
|
||||
@@ -87,6 +99,8 @@ type CircuitFwdActions struct {
|
||||
type CircuitMap interface {
|
||||
CircuitModifier
|
||||
|
||||
CircuitLookup
|
||||
|
||||
// CommitCircuits attempts to add the given circuits to the circuit
|
||||
// map. The list of circuits is split into three distinct
|
||||
// sub-sequences, corresponding to adds, drops, and fails. Adds should
|
||||
@@ -104,14 +118,6 @@ type CircuitMap interface {
|
||||
// settles/fails from being accepted for the same circuit.
|
||||
FailCircuit(inKey CircuitKey) (*PaymentCircuit, error)
|
||||
|
||||
// LookupCircuit queries the circuit map for the circuit identified by
|
||||
// inKey.
|
||||
LookupCircuit(inKey CircuitKey) *PaymentCircuit
|
||||
|
||||
// LookupOpenCircuit queries the circuit map for a circuit identified
|
||||
// by its outgoing circuit key.
|
||||
LookupOpenCircuit(outKey CircuitKey) *PaymentCircuit
|
||||
|
||||
// LookupByPaymentHash queries the circuit map and returns all open
|
||||
// circuits that use the given payment hash.
|
||||
LookupByPaymentHash(hash [32]byte) []*PaymentCircuit
|
||||
|
Reference in New Issue
Block a user