mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
don't crash if the user unset his extpubkey
This commit is contained in:
@@ -190,9 +190,12 @@ namespace BTCPayServer.Controllers
|
|||||||
needUpdate = true;
|
needUpdate = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
if (!string.IsNullOrEmpty(model.DerivationScheme))
|
||||||
await _Wallet.TrackAsync(strategy);
|
{
|
||||||
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
||||||
|
await _Wallet.TrackAsync(strategy);
|
||||||
|
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
||||||
|
}
|
||||||
store.DerivationStrategy = model.DerivationScheme;
|
store.DerivationStrategy = model.DerivationScheme;
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|||||||
Reference in New Issue
Block a user