mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Show Bitcoin RPC service
This commit is contained in:
@@ -570,6 +570,17 @@ namespace BTCPayServer.Controllers
|
||||
ServiceName = torService.Name,
|
||||
};
|
||||
}
|
||||
if (torService.ServiceType == TorServiceType.RPC)
|
||||
{
|
||||
externalService = new ExternalService()
|
||||
{
|
||||
CryptoCode = torService.Network.CryptoCode,
|
||||
DisplayName = "Full node RPC",
|
||||
Type = ExternalServiceTypes.RPC,
|
||||
ConnectionString = new ExternalConnectionString(new Uri($"btcrpc://btcrpc:btcpayserver4ever@{torService.OnionHost}:{torService.VirtualPort}", UriKind.Absolute)),
|
||||
ServiceName = torService.Name
|
||||
};
|
||||
}
|
||||
return externalService != null;
|
||||
}
|
||||
|
||||
@@ -605,6 +616,15 @@ namespace BTCPayServer.Controllers
|
||||
ServiceLink = service.ConnectionString.Server.AbsoluteUri.WithoutEndingSlash()
|
||||
});
|
||||
}
|
||||
if (service.Type == ExternalServiceTypes.RPC)
|
||||
{
|
||||
return View("RPCService", new LightningWalletServices()
|
||||
{
|
||||
ShowQR = showQR,
|
||||
WalletName = service.ServiceName,
|
||||
ServiceLink = service.ConnectionString.Server.AbsoluteUri.WithoutEndingSlash()
|
||||
});
|
||||
}
|
||||
var connectionString = await service.ConnectionString.Expand(this.Request.GetAbsoluteUriNoPathBase(), service.Type, _Options.NetworkType);
|
||||
switch (service.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user