Fix segwit ScriptPubKey tracking bug
MODIFY
HiddenWallet.FullSpvWallet/WalletJob.cs
HiddenWallet.FullSpvWallet/WalletJob.cs
@@ -376,7 +376,7 @@ namespace HiddenWallet.FullSpv
if (Tracker.IsClean(scriptPubkey))
{
cleanCount++;
- if (cleanCount > MaxCleanAddressCount) return;
+ if (cleanCount > MaxCleanAddressCount) break;
}
i++;

MODIFY
HiddenWallet.Tests/SendTests.cs
HiddenWallet.Tests/SendTests.cs
@@ -57,6 +57,11 @@ namespace HiddenWallet.Tests
Task.Delay(1000).Wait();
}
+ foreach(var r in walletJob.GetSafeHistory(account))
+ {
+ Debug.WriteLine(r.TransactionId);
+ }
+
var record = walletJob.GetSafeHistory(account).FirstOrDefault();
Debug.WriteLine(record.Confirmed);
Debug.WriteLine(record.Amount);

Fix segwit ScriptPubKey tracking bug