routing: support multiple namespaced MissionControls

This commit is contained in:
Elle Mouton
2024-08-13 19:19:06 +02:00
parent 5eff056933
commit 8126930d6c
6 changed files with 250 additions and 53 deletions

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.