Fix server/info returning incorrect data for XMR/ZCash (#6569)

This commit is contained in:
Nicolas Dorier 2025-01-21 17:48:59 +09:00 committed by GitHub
parent 5534ddeb28
commit 97173c9811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View file

@ -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

View file

@ -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