make default configuration just work with multi chains

This commit is contained in:
nicolas.dorier
2018-01-11 22:52:28 +09:00
parent 223558c01d
commit 8596e16feb
15 changed files with 168 additions and 222 deletions

View File

@@ -77,7 +77,7 @@ namespace BTCPayServer.Controllers
return NotFound();
var payment = PaymentMessage.Load(Request.Body);
var unused = wallet.BroadcastTransactionsAsync(payment.Transactions);
await _InvoiceRepository.AddRefundsAsync(invoiceId, payment.RefundTo.Select(p => new TxOut(p.Amount, p.Script)).ToArray());
await _InvoiceRepository.AddRefundsAsync(invoiceId, payment.RefundTo.Select(p => new TxOut(p.Amount, p.Script)).ToArray(), network.NBitcoinNetwork);
return new PaymentAckActionResult(payment.CreateACK(invoiceId + " is currently processing, thanks for your purchase..."));
}
}