Skip to content

Commit

Permalink
Fixed bad hash for Penthera Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Dec 23, 2024
1 parent b26bcb2 commit ff9bc38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Miningcore/Native/Panthera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static unsafe class Panthera
private static extern void destroy_vm(IntPtr machine);

[DllImport("libpanthera", EntryPoint = "randomx_calculate_hash", CallingConvention = CallingConvention.Cdecl)]
private static extern void calculate_hash(IntPtr machine, byte* input, int inputSize, byte* output);
private static extern void calculate_hash(IntPtr machine, byte* input, int inputSize, byte* output, bool b);

public class GenContext
{
Expand Down Expand Up @@ -152,7 +152,7 @@ public void CalculateHash(ReadOnlySpan<byte> data, Span<byte> result)
{
fixed (byte* output = result)
{
calculate_hash(vm, input, data.Length, output);
calculate_hash(vm, input, data.Length, output, false);
}
}
}
Expand Down

0 comments on commit ff9bc38

Please sign in to comment.