Updates the NBitcoin version to the lastest one
MODIFY
WalletWasabi/Backend/Models/FilterModel.cs
WalletWasabi/Backend/Models/FilterModel.cs
@@ -44,11 +44,15 @@ namespace WalletWasabi.Backend.Models
Filter = null
};
}
+
+ var data = NBitcoin.DataEncoders.Encoders.Hex.DecodeData(parts[1]);
+ var filter = new GolombRiceFilter(data, 20, 1<<20);
+
return new FilterModel
{
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = new uint256(parts[0]),
- Filter = GolombRiceFilter.Parse(parts[1])
+ Filter = filter
};
}
}

MODIFY
WalletWasabi/Services/IndexBuilderService.cs
WalletWasabi/Services/IndexBuilderService.cs
@@ -318,6 +318,8 @@ namespace WalletWasabi.Services
{
filter = new GolombRiceFilterBuilder()
.SetKey(block.GetHash())
+ .SetP(20)
+ .SetM(1<<20)
.AddEntries(scripts.Select(x => x.ToCompressedBytes()))
.Build();
}

MODIFY
WalletWasabi/WalletWasabi.csproj
WalletWasabi/WalletWasabi.csproj
<ItemGroup>
<PackageReference Include="ConcurrentHashSet" Version="1.0.2" />
- <PackageReference Include="NBitcoin" Version="4.1.1.10" />
+ <PackageReference Include="NBitcoin" Version="4.1.1.13" />
<PackageReference Include="Nito.AsyncEx.Coordination" Version="1.0.2" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.2" />
</ItemGroup>

Updates the NBitcoin version to the lastest one