You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Inconsistent pubkey whitelist matching in invoice fee calculation #512
Describe the bug whitelist.pubkey matching is currently implemented using prefix-based logic. This inconsistency allow unrelated pubkeys as whitelisted if they share the same prefix. However. the intended behavior is to use exact pubkey matching.
Expected behavior
The whitelist should consistently use exact matching . A pubkey should only be considered whitelisted if it matches an entry in settings exactly. Screenshots
Refer to logic discrepancy in src/controllers/post-invoice-controller.ts:
Line 115 : !feeSchedule.whitelists?.pubkeys?.some((prefix) => pubkey.startsWith(prefix))
Line 120 : !feeSchedule.whitelists?.pubkeys?.includes(pubkey
Activity
cameri commentedon Apr 19, 2026
thank you @vikashsiwach