This commit is contained in:
nicolas.dorier 2020-10-30 00:17:15 +09:00
parent 1199d4ead9
commit d8f9075e2a
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -371,7 +371,7 @@ namespace BTCPayServer.Payments.Bitcoin
var address = network.NBXplorerNetwork.CreateAddress(strategy, coin.KeyPath, coin.ScriptPubKey);
var paymentData = new BitcoinLikePaymentData(address, coin.Value, coin.OutPoint,
transaction.Transaction is null ? true : transaction.Transaction.RBF, coin.KeyPath);
transaction?.Transaction is null ? true : transaction.Transaction.RBF, coin.KeyPath);
var payment = await _InvoiceRepository.AddPayment(invoice.Id, coin.Timestamp, paymentData, network).ConfigureAwait(false);
alreadyAccounted.Add(coin.OutPoint);