mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +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
|
@ -190,9 +190,12 @@ namespace BTCPayServer.Controllers
|
|||
needUpdate = true;
|
||||
try
|
||||
{
|
||||
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
||||
await _Wallet.TrackAsync(strategy);
|
||||
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
||||
if (!string.IsNullOrEmpty(model.DerivationScheme))
|
||||
{
|
||||
var strategy = ParseDerivationStrategy(model.DerivationScheme);
|
||||
await _Wallet.TrackAsync(strategy);
|
||||
await _CallbackController.RegisterCallbackUriAsync(strategy, Request);
|
||||
}
|
||||
store.DerivationStrategy = model.DerivationScheme;
|
||||
}
|
||||
catch
|
||||
|
|
Loading…
Add table
Reference in a new issue