routing: support multiple namespaced MissionControls

This commit is contained in:
Elle Mouton committed 2024-10-01 14:11:05 +02:00
1 parent 5eff056933
commit 8126930d6c
6 files changed
+250 -53

No files matched your search

+4 -1
View File
@@ -168,7 +168,10 @@ func (c *integratedRoutingContext) testPayment(maxParts uint32,
mcController, err := NewMissionController(db, c.source.pubkey, &c.mcCfg)
require.NoError(c.t, err)
mc := mcController.GetDefaultStore()
mc, err := mcController.GetNamespacedStore(
DefaultMissionControlNamespace,
)
require.NoError(c.t, err)
getBandwidthHints := func(_ Graph) (bandwidthHints, error) {
// Create bandwidth hints based on local channel balances.