mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 23:54:26 +01:00
Merge pull request #37 from vindard/default-server-network-aware
Make blink default 'server' network aware
This commit is contained in:
@@ -31,7 +31,12 @@ public class BlinkLightningConnectionStringHandler : ILightningConnectionStringH
|
||||
|
||||
if (!kv.TryGetValue("server", out var server))
|
||||
{
|
||||
server = "https://api.blink.sv/graphql";
|
||||
server = network.Name switch
|
||||
{
|
||||
nameof(Network.TestNet) => "https://api.staging.galoy.io/graphql",
|
||||
nameof(Network.RegTest) => "http://localhost:4455/graphql",
|
||||
_ => "https://api.blink.sv/graphql"
|
||||
};
|
||||
// error = $"The key 'server' is mandatory for blink connection strings";
|
||||
// return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user