mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Merge pull request #6595 from NicolasDorier/replacement-log
If an On-Chain payment get replaced, log it in invoice logs rather than console
This commit is contained in:
commit
b184067df7
1 changed files with 3 additions and 1 deletions
|
@ -291,7 +291,9 @@ namespace BTCPayServer.Payments.Bitcoin
|
|||
result.RPCCode == RPCErrorCode.RPC_TRANSACTION_REJECTED);
|
||||
if (!accounted && payment.Accounted && tx.Confirmations != -1)
|
||||
{
|
||||
Logs.PayServer.LogInformation($"{wallet.Network.CryptoCode}: The transaction {tx.TransactionHash} has been replaced.");
|
||||
var logs = new InvoiceLogs();
|
||||
logs.Write($"The transaction {tx.TransactionHash} has been replaced.", InvoiceEventData.EventSeverity.Warning);
|
||||
await _InvoiceRepository.AddInvoiceLogs(invoice.Id, logs);
|
||||
}
|
||||
if (paymentData.PayjoinInformation is PayjoinInformation pj)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue