mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
don't crash if the user unset his extpubkey
This commit is contained in:
parent
ca85095273
commit
73c44f8726
1 changed files with 6 additions and 3 deletions
|
@ -189,10 +189,13 @@ namespace BTCPayServer.Controllers
|
||||||
{
|
{
|
||||||
needUpdate = true;
|
needUpdate = true;
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(model.DerivationScheme))
|
||||||
{
|
{
|
||||||
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
||||||
await _Wallet.TrackAsync(strategy);
|
await _Wallet.TrackAsync(strategy);
|
||||||
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
||||||
|
}
|
||||||
store.DerivationStrategy = model.DerivationScheme;
|
store.DerivationStrategy = model.DerivationScheme;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Add table
Reference in a new issue