Fix crash for installations supporting zcash or monero (#4610)

This commit is contained in:
nicolas.dorier 2023-02-09 09:49:08 +09:00
parent ed0ccd6f13
commit a20408bed1
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
4 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#if ALTCOINS
using BTCPayServer.Payments;
using Newtonsoft.Json;
namespace BTCPayServer.Services.Altcoins.Monero.Payments
{
@ -8,6 +9,7 @@ namespace BTCPayServer.Services.Altcoins.Monero.Payments
public string CryptoCode { get; set; }
public long AccountIndex { get; set; }
[JsonIgnore]
public PaymentMethodId PaymentId => new PaymentMethodId(CryptoCode, MoneroPaymentType.Instance);
}
}

View File

@ -1,5 +1,6 @@
#if ALTCOINS
using BTCPayServer.Payments;
using Newtonsoft.Json;
namespace BTCPayServer.Services.Altcoins.Zcash.Payments
{
@ -8,6 +9,7 @@ namespace BTCPayServer.Services.Altcoins.Zcash.Payments
public string CryptoCode { get; set; }
public long AccountIndex { get; set; }
[JsonIgnore]
public PaymentMethodId PaymentId => new PaymentMethodId(CryptoCode, ZcashPaymentType.Instance);
}
}

View File

@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.7.6</Version>
<Version>1.7.7</Version>
</PropertyGroup>
</Project>

View File

@ -1,5 +1,18 @@
# Changelog
## 1.7.7
Some users experienced Error 500 after login on to BTCPay Server from the 1.7.6.
If it is your case, to update on docker deployments via the UI, you need to:
1. Start a browser session in incognito/private mode.
2. Browse to `https://{yourserver}/server/maintenance`
3. Hit update button
### Bug fixes
* Fix crash for installations supporting zcash or monero (#4610) @NicolasDorier
## 1.7.6
There are two vulnerabilities fixed in this release.