mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Fix: Payments to Top-Up could be undetected due to race condition (#5568)
This commit is contained in:
@@ -50,6 +50,7 @@ namespace BTCPayServer.Data
|
||||
|
||||
public static StoreBlob GetStoreBlob(this StoreData storeData)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(storeData);
|
||||
var result = storeData.StoreBlob == null ? new StoreBlob() : new Serializer(null).ToObject<StoreBlob>(storeData.StoreBlob);
|
||||
if (result.PreferredExchange == null)
|
||||
result.PreferredExchange = result.GetRecommendedExchange();
|
||||
|
||||
Reference in New Issue
Block a user