mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
fix watch only dashboard
This commit is contained in:
@@ -149,7 +149,8 @@ public class Smartifier
|
||||
utxoLabels.TryGetValue(coin.OutPoint, out var labels);
|
||||
var unsmartTx = await CachedTransactions[coin.OutPoint.Hash];
|
||||
var pubKey = DerivationScheme.GetChild(coin.KeyPath).GetExtPubKeys().First().PubKey;
|
||||
var kp = _accountKeyPath.Derive(coin.KeyPath).KeyPath;
|
||||
//if there is no account key path, it most likely means this is a watch only wallet. Fake the key path
|
||||
var kp = _accountKeyPath?.Derive(coin.KeyPath).KeyPath ?? new KeyPath(0);
|
||||
|
||||
var hdPubKey = new HdPubKey(pubKey, kp, new SmartLabel(labels.labels ?? new HashSet<string>()),
|
||||
current == 1 ? KeyState.Clean : KeyState.Used);
|
||||
|
||||
Reference in New Issue
Block a user