Skip to content

Commit 4cac729

Browse files
committed
Explore CI bugs.
1 parent f31b096 commit 4cac729

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: |
3737
sudo apt-get install libgmp-dev libboost-python-dev libpython3-dev libboost-system-dev build-essential -y
3838
cd src
39-
make ${{ matrix.config }} -f Makefile.vdf-client
39+
VDF_MODE=1 make ${{ matrix.config }} -f Makefile.vdf-client
4040
4141
- name: Build vdf-client on Mac
4242
if: startsWith(matrix.os, 'mac')

src/Makefile.vdf-client

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ endif
88

99
LDFLAGS += -flto $(NOPIE) -g
1010
LDLIBS += -lgmpxx -lgmp -lboost_system -pthread
11-
CXXFLAGS += -flto -std=c++1z -D VDF_MODE=0 -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden
11+
VDF_MODE ?= 0
12+
CXXFLAGS += -flto -std=c++1z -D VDF_MODE=$(VDF_MODE) -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden
13+
1214
ifeq ($(UNAME),Darwin)
1315
CXXFLAGS += -D CHIAOSX=1
1416
endif

src/vdf.h

+2
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ void repeated_square(uint64_t iterations, form f, const integer& D, const intege
228228

229229
#ifdef VDF_TEST
230230
if (vdf_test_correctness) {
231+
/*
231232
form f_copy_2=f;
232233
weso->reduce(f_copy_2);
233234
234235
repeated_square_original(*weso->vdfo, f_copy, D, L, actual_iterations);
235236
assert(f_copy==f_copy_2);
237+
*/
236238
}
237239
#endif
238240
}

0 commit comments

Comments
 (0)