mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2026-02-10 10:25:11 +01:00
reenasble
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Wabisabi Coinjoin</Product>
|
||||
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
|
||||
<Version>1.0.28</Version>
|
||||
<Version>1.0.29</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -30,22 +30,22 @@ public class WabisabiPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
var res = ActivatorUtilities.CreateInstance<WabisabiCoordinatorClientInstanceManager>(provider);
|
||||
res.UTXOLocker = utxoLocker;
|
||||
// res.AddCoordinator("zkSNACKS Coordinator", "zksnacks", provider =>
|
||||
// {
|
||||
// var chain = provider.GetService<IExplorerClientProvider>().GetExplorerClient("BTC").Network
|
||||
// .NBitcoinNetwork.ChainName;
|
||||
// if (chain == ChainName.Mainnet)
|
||||
// {
|
||||
// return new Uri("https://wasabiwallet.io/");
|
||||
// }
|
||||
//
|
||||
// if (chain == ChainName.Testnet)
|
||||
// {
|
||||
// return new Uri("https://wasabiwallet.co/");
|
||||
// }
|
||||
//
|
||||
// return new Uri("http://localhost:37127");
|
||||
// });
|
||||
res.AddCoordinator("zkSNACKS Coordinator", "zksnacks", provider =>
|
||||
{
|
||||
var chain = provider.GetService<IExplorerClientProvider>().GetExplorerClient("BTC").Network
|
||||
.NBitcoinNetwork.ChainName;
|
||||
if (chain == ChainName.Mainnet)
|
||||
{
|
||||
return new Uri("https://wasabiwallet.io/");
|
||||
}
|
||||
|
||||
if (chain == ChainName.Testnet)
|
||||
{
|
||||
return new Uri("https://wasabiwallet.co/");
|
||||
}
|
||||
|
||||
return new Uri("http://localhost:37127");
|
||||
});
|
||||
return res;
|
||||
});
|
||||
applicationBuilder.AddHostedService(provider =>
|
||||
|
||||
Reference in New Issue
Block a user