fix starting regtest filter
MODIFY
WalletWasabi.Tests/IntegrationTests/RegTests.cs
WalletWasabi.Tests/IntegrationTests/RegTests.cs
@@ -292,7 +292,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var filter = filters[i];
Assert.Equal(i, (int)filter.Header.Height);
Assert.Equal(expectedHash, filter.Header.BlockHash);
- Assert.Null(filter.Filter);
+ Assert.Equal("00", filter.Filter.ToString());
}
}
finally
@@ -402,7 +402,7 @@ namespace WalletWasabi.Tests.IntegrationTests
Assert.Equal(expectedHash, filter.Header.BlockHash);
if (i < 101) // Later other tests may fill the filter.
{
- Assert.Null(filter.Filter);
+ Assert.Equal("00", filter.Filter.ToString());
}
}

MODIFY
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
@@ -24,7 +24,7 @@ namespace WalletWasabi.Blockchain.BlockFilters
}
else if (network == Network.RegTest)
{
- return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206:{startingHeader.PrevHash}:{startingHeader.BlockTime.ToUnixTimeSeconds()}");
+ return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:00:{startingHeader.PrevHash}:{startingHeader.BlockTime.ToUnixTimeSeconds()}");
}
else
{

fix starting regtest filter