Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
run: |
sudo apt-get install libgmp-dev libboost-python-dev libpython3-dev libboost-system-dev build-essential -y
cd src
make ${{ matrix.config }} -f Makefile.vdf-client
VDF_MODE=1 make ${{ matrix.config }} -f Makefile.vdf-client

- name: Build vdf-client on Mac
if: startsWith(matrix.os, 'mac')
run: |
brew install boost
cd src
# TODO: Are we expected to fail to compile with VDF_MODE=1 on macOS
make ${{ matrix.config }} -f Makefile.vdf-client

- name: Test vdf-client
Expand Down
4 changes: 3 additions & 1 deletion src/Makefile.vdf-client
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ endif

LDFLAGS += -flto $(NOPIE) -g
LDLIBS += -lgmpxx -lgmp -lboost_system -pthread
CXXFLAGS += -flto -std=c++1z -D VDF_MODE=0 -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden

VDF_MODE ?= 0
CXXFLAGS += -flto -std=c++1z -D VDF_MODE=$(VDF_MODE) -D FAST_MACHINE=1 -pthread $(NOPIE) -fvisibility=hidden
ifeq ($(UNAME),Darwin)
CXXFLAGS += -D CHIAOSX=1
endif
Expand Down
2 changes: 1 addition & 1 deletion src/vdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void repeated_square(uint64_t iterations, form f, const integer& D, const intege
form f_copy_2=f;
weso->reduce(f_copy_2);

repeated_square_original(*weso->vdfo, f_copy, D, L, actual_iterations);
repeated_square_original(*weso->vdfo, f_copy, D, L, actual_iterations, 1, NULL);
assert(f_copy==f_copy_2);
}
#endif
Expand Down
Loading