Skip to content

Commit d0e40bc

Browse files
committed
Revert broken additional payment fix and release as 1.3.2
1 parent f2958c8 commit d0e40bc

5 files changed

Lines changed: 6 additions & 16 deletions

File tree

BTCPayServer.Plugins.IntegrationTests/Monero/MoneroPluginIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public async Task ShouldSettleInvoiceAfterPartialThenFullPayment()
6060
await AssertFullyPaidReceipt(s.Page, "$4.20");
6161
}
6262

63-
[Fact]
63+
[Fact(Skip = "Skip until proper fix for additional payment is created")]
6464
public async Task ShouldReuseOriginalAddressForSubsequentPartialPayment()
6565
{
6666
await using var s = CreatePlaywrightTester();

Plugins/Monero/BTCPayServer.Plugins.Monero.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PropertyGroup>
99
<Product>Monero</Product>
1010
<Description>This plugin extends BTCPay Server to enable users to receive payments via Monero.</Description>
11-
<Version>1.3.1</Version>
11+
<Version>1.3.2</Version>
1212
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1313
</PropertyGroup>
1414

Plugins/Monero/BTCPayServer.Plugins.Monero.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Identifier": "BTCPayServer.Plugins.Monero",
33
"Name": "Monero",
4-
"Version": "1.3.1",
4+
"Version": "1.3.2",
55
"Description": "This plugin extends BTCPay Server to enable users to receive payments via Monero.",
66
"SystemPlugin": false,
77
"Dependencies": [

Plugins/Monero/MoneroPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace BTCPayServer.Plugins.Monero;
2626

2727
public class MoneroPlugin : BaseBTCPayServerPlugin
2828
{
29-
public override Version Version => new(1, 3, 1);
29+
public override Version Version => new(1, 3, 2);
3030

3131
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
3232
[

Plugins/Monero/Services/MoneroListener.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private async Task UpdatePaymentStates(string cryptoCode, InvoiceEntity[] invoic
210210
}
211211

212212

213-
return HandlePaymentData(cryptoCode, transfer.Address, transfer.Amount, transfer.SubaddressIndex.AccountIndex,
213+
return HandlePaymentData(cryptoCode, transfer.Amount, transfer.SubaddressIndex.AccountIndex,
214214
transfer.SubaddressIndex.Index, transfer.TransactionId, transfer.Confirmations, transfer.Height,
215215
transfer.UnlockTime, invoice,
216216
updatedPaymentEntities);
@@ -259,7 +259,6 @@ private async Task OnTransactionUpdated(string cryptoCode, string transactionHas
259259
var index = destination.First().SubaddressIndex;
260260

261261
await HandlePaymentData(cryptoCode,
262-
destination.Key,
263262
destination.Sum(destination1 => destination1.Amount),
264263
index.AccountIndex,
265264
index.Index,
@@ -329,7 +328,7 @@ private async Task<GetTransferByTransactionIdResponse> GetTransferByTxId(string
329328
}
330329
}
331330

332-
private async Task HandlePaymentData(string cryptoCode, string address, long totalAmount, uint subaccountIndex,
331+
private async Task HandlePaymentData(string cryptoCode, long totalAmount, uint subaccountIndex,
333332
uint subaddressIndex,
334333
string txId, int confirmations, ulong blockHeight, int locktime, InvoiceEntity invoice,
335334
List<(PaymentEntity Payment, InvoiceEntity invoice)> paymentsToUpdate)
@@ -349,15 +348,6 @@ private async Task HandlePaymentData(string cryptoCode, string address, long tot
349348
InvoiceSettledConfirmationThreshold = promptDetails.InvoiceSettledConfirmationThreshold
350349
};
351350

352-
// set destination address from transfer
353-
var prompts = invoice.GetPaymentPrompts();
354-
var prompt = prompts[pmi];
355-
if (prompt != null)
356-
{
357-
prompt.Destination = address;
358-
invoice.SetPaymentPrompts(prompts);
359-
}
360-
361351
var status = GetStatus(details, invoice.SpeedPolicy) ? PaymentStatus.Settled : PaymentStatus.Processing;
362352
var paymentData = new PaymentData
363353
{

0 commit comments

Comments
 (0)