log issue

This commit is contained in:
Kukks
2024-06-20 12:14:03 +02:00
parent 177e34fe3d
commit 80141d44ca
2 changed files with 12 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
<PropertyGroup>
<Product>Coinjoin</Product>
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
<Version>1.0.90</Version>
<Version>1.0.91</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

View File

@@ -190,7 +190,17 @@ public class Smartifier
var smartCoin = await Coins.GetOrAdd(coin.OutPoint, async point =>
{
utxoLabels.TryGetValue(coin.OutPoint, out var labels);
var pubKey = DerivationScheme.GetChild(coin.KeyPath).GetExtPubKeys().First().PubKey;
PubKey pubKey;
try
{
pubKey = DerivationScheme.GetChild(coin.KeyPath).GetExtPubKeys().First().PubKey;
}
catch (Exception e)
{
_logger.LogError(e, $"REPORT THIS CRASH! Derivnull? {DerivationScheme is null}, coinpath?{coin.KeyPath is null} ");
throw;
}
//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,0,0,0,0);