Browse Source

work2d: Expose WORK2D_MAX_DIVISIONS in header

Luke Dashjr 11 years ago
parent
commit
2c20aef7bc
2 changed files with 4 additions and 1 deletions
  1. 2 1
      work2d.c
  2. 2 0
      work2d.h

+ 2 - 1
work2d.c

@@ -15,8 +15,9 @@
 
 #include "miner.h"
 #include "util.h"
+#include "work2d.h"
 
-#define MAX_DIVISIONS 255
+#define MAX_DIVISIONS  WORK2D_MAX_DIVISIONS
 
 static bool work2d_reserved[MAX_DIVISIONS + 1] = { true };
 int work2d_xnonce1sz;

+ 2 - 0
work2d.h

@@ -4,6 +4,8 @@
 #include <stdbool.h>
 #include <stdint.h>
 
+#define WORK2D_MAX_DIVISIONS  255
+
 extern int work2d_xnonce1sz;
 extern int work2d_xnonce2sz;