Source from DummyScript
MODIFY
WalletWasabi/Blockchain/BlockFilters/IndexBuilderService.cs
WalletWasabi/Blockchain/BlockFilters/IndexBuilderService.cs
@@ -20,7 +20,7 @@ namespace WalletWasabi.Blockchain.BlockFilters
{
public class IndexBuilderService
{
- private static byte[][] DummyScript { get; } = new byte[][] { ByteHelpers.FromHex("0009BBE4C2D17185643765C265819BF5261755247D") };
+ public static byte[][] DummyScript { get; } = new byte[][] { ByteHelpers.FromHex("0009BBE4C2D17185643765C265819BF5261755247D") };
public RPCClient RpcClient { get; }
public BlockNotifier BlockNotifier { get; }
public string IndexFilePath { get; }

MODIFY
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
WalletWasabi/Blockchain/BlockFilters/StartingFilters.cs
@@ -24,7 +24,13 @@ namespace WalletWasabi.Blockchain.BlockFilters
}
else if (network == Network.RegTest)
{
- return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:01053a58:{startingHeader.PrevHash}:{startingHeader.BlockTime.ToUnixTimeSeconds()}");
+ var filter = new GolombRiceFilterBuilder()
+ .SetKey(startingHeader.BlockHash)
+ .SetP(20)
+ .SetM(1 << 20)
+ .AddEntries(IndexBuilderService.DummyScript)
+ .Build();
+ return FilterModel.FromLine($"{startingHeader.Height}:{startingHeader.BlockHash}:{filter.ToString()}:{startingHeader.PrevHash}:{startingHeader.BlockTime.ToUnixTimeSeconds()}");
}
else
{

Source from DummyScript