More user friendly error message if Invalid String Hex
MODIFY
WalletWasabi/Backend/Models/FilterModel.cs
WalletWasabi/Backend/Models/FilterModel.cs
@@ -32,6 +32,8 @@ public class FilterModel
public byte[] FilterKey => Header.BlockHash.ToBytes()[..16];
public static FilterModel FromLine(string line)
+ {
+ try
{
string[] parts = line.Split(':');
@@ -49,6 +51,11 @@ public class FilterModel
return new FilterModel(new SmartHeader(blockHash, prevBlockHash, blockHeight, blockTime), filter);
}
+ catch (FormatException ex)
+ {
+ throw new FormatException("There was an error parsing Filters. Resynchronize needed, please restart Wasabi.", ex);
+ }
+ }
public string ToLine()
{

More user friendly error message if Invalid String Hex