Properly map addresses to invoice, use new nbxplorer

This commit is contained in:
NicolasDorier
2017-10-06 10:37:38 +09:00
parent 8b4e572e16
commit f456d62d3c
12 changed files with 535 additions and 37 deletions

View File

@@ -99,7 +99,7 @@ namespace BTCPayServer.Controllers
entity.DepositAddress = await _Wallet.ReserveAddressAsync(derivationStrategy);
entity = await _InvoiceRepository.CreateInvoiceAsync(store.Id, entity);
await _Wallet.MapAsync(entity.DepositAddress, entity.Id);
await _Wallet.MapAsync(entity.DepositAddress.ScriptPubKey, entity.Id);
await _Watcher.WatchAsync(entity.Id);
var resp = entity.EntityToDTO();
return new DataWrapper<InvoiceResponse>(resp) { Facade = "pos/invoice" };