Support electrum segwit xpub format

This commit is contained in:
nicolas.dorier
2017-12-06 18:08:21 +09:00
parent a52a1901c4
commit 24ce325e31
6 changed files with 143 additions and 104 deletions

View File

@@ -235,9 +235,9 @@ namespace BTCPayServer.Controllers
[BitpayAPIConstraint(false)]
public async Task<IActionResult> CreateInvoice(CreateInvoiceModel model)
{
model.Stores = await GetStores(GetUserId(), model.StoreId);
if (!ModelState.IsValid)
{
model.Stores = await GetStores(GetUserId(), model.StoreId);
return View(model);
}
var store = await _StoreRepository.FindStore(model.StoreId, GetUserId());