From 16a6da72f15e3ac2df6cd147b4c82f9a22260d46 Mon Sep 17 00:00:00 2001 From: ffranr Date: Thu, 12 Feb 2026 16:06:44 +0000 Subject: [PATCH] subservers: remove dependency on tap.UniversePublicAccessStatus* --- subservers/taproot-assets.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/subservers/taproot-assets.go b/subservers/taproot-assets.go index 87cf3695..a823e264 100644 --- a/subservers/taproot-assets.go +++ b/subservers/taproot-assets.go @@ -177,14 +177,8 @@ func (t *taprootAssetsSubServer) WhiteListedURLs() map[string]struct{} { // If it is running in remote mode however, we just allow the request // through since the remote daemon will handle blocking the call if it // is not whitelisted there. - publicUniRead := strings.Contains( - t.cfg.Universe.PublicAccess, - string(tap.UniversePublicAccessStatusRead), - ) - publicUniWrite := strings.Contains( - t.cfg.Universe.PublicAccess, - string(tap.UniversePublicAccessStatusWrite), - ) + publicUniRead := strings.Contains(t.cfg.Universe.PublicAccess, "r") + publicUniWrite := strings.Contains(t.cfg.Universe.PublicAccess, "w") return taprpc.MacaroonWhitelist( publicUniRead || t.remote, publicUniWrite || t.remote,