multi: query circuit map inside contractcourt
This commit adds a new config method `QueryIncomingCircuit` that can be used to query the payment's incoming circuit for giving its outgoing circuit key.
This commit is contained in:
10 files changed
+130
-44
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/channeldb/models"
|
||||
"github.com/lightningnetwork/lnd/clock"
|
||||
"github.com/lightningnetwork/lnd/lntest/mock"
|
||||
"github.com/lightningnetwork/lnd/lnwallet"
|
||||
@@ -172,6 +173,11 @@ func TestResolveContract(t *testing.T) {
|
||||
},
|
||||
Clock: clock.NewDefaultClock(),
|
||||
Budget: *DefaultBudgetConfig(),
|
||||
QueryIncomingCircuit: func(
|
||||
circuit models.CircuitKey) *models.CircuitKey {
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
chainArb := NewChainArbitrator(
|
||||
chainArbCfg, db,
|
||||
|
||||
Reference in new issue
Block a user