mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix server/info returning incorrect data for XMR/ZCash (#6569)
This commit is contained in:
parent
5534ddeb28
commit
97173c9811
2 changed files with 2 additions and 12 deletions
|
@ -25,18 +25,13 @@ namespace BTCPayServer.Services.Altcoins.Monero.Services
|
|||
{
|
||||
return _moneroRpcProvider.Summaries.Select(pair => new MoneroSyncStatus()
|
||||
{
|
||||
Summary = pair.Value, PaymentMethodId = PaymentMethodId.Parse(pair.Key)
|
||||
Summary = pair.Value, PaymentMethodId = PaymentMethodId.Parse(pair.Key).ToString()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public class MoneroSyncStatus: SyncStatus, ISyncStatus
|
||||
{
|
||||
public new PaymentMethodId PaymentMethodId
|
||||
{
|
||||
get => PaymentMethodId.Parse(base.PaymentMethodId);
|
||||
set => base.PaymentMethodId = value.ToString();
|
||||
}
|
||||
public override bool Available
|
||||
{
|
||||
get
|
||||
|
|
|
@ -25,18 +25,13 @@ namespace BTCPayServer.Services.Altcoins.Zcash.Services
|
|||
{
|
||||
return _ZcashRpcProvider.Summaries.Select(pair => new ZcashSyncStatus()
|
||||
{
|
||||
Summary = pair.Value, PaymentMethodId = PaymentMethodId.Parse(pair.Key)
|
||||
Summary = pair.Value, PaymentMethodId = PaymentMethodId.Parse(pair.Key).ToString()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public class ZcashSyncStatus: SyncStatus, ISyncStatus
|
||||
{
|
||||
public new PaymentMethodId PaymentMethodId
|
||||
{
|
||||
get => PaymentMethodId.Parse(base.PaymentMethodId);
|
||||
set => base.PaymentMethodId = value.ToString();
|
||||
}
|
||||
public override bool Available
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Reference in a new issue