-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate timelord, add Windows/CentOS/AMZN (#62)
1.1.1 release * windows build instructions * install.sh newline fix \n wasn't as cross platform as it should be so reverted to an extra echo * Add CentOS to README.md Full CentOS 7.7 install instructions * mention blspy * confirmed boost 1.67.0 works on Ubuntu * Update README.md. * Fix problem with zip download. * Remove scm warning Revert install instructions due to scm fix * Update README and install scripts to separate timelord installation Do not install VDF server and its dependencies in install.sh, create a separate script install_timelord.sh for that. * Move installation of VDF server dependencies to install_timelord.sh * First and broken attempt at CentOS install * Working CentOS 7.7 install * typos in timelord explanation * Timlord/VDF build instructions Specifics for CentOS and MacOS * Various install tips and tricks * spelling error * Add AMZN linux 2 install * Add AMZN linux 2 timelord install Also clean up base install instructions * Combine TL for AMZN and CentOS * Nits for AMZN and CentOS * CentOS, AMZN timelord paralleling * Fix header layouts * Replace VDF server compilation scripts with Makefile * layout improvements * fast_vdf: Remove unused files * Partial ARM install support * missing l in lib * Fleshed out Windows/WSL installs And verified the method for upgrade to 19.x * Move MacOS install fullnode to bottom * Change to mongo "system-wide" * Add mongo start to WSL * Add actual upgrade for WSL/Ubuntu Co-authored-by: Mariano Sorgente <sorgente711@gmail.com> Co-authored-by: Rostislav Skudnov <skrostislav@gmail.com> Co-authored-by: Richard Kiss <him@richardkiss.com> Co-authored-by: wjblanke <wjb2002@flex.com>
- Loading branch information
1 parent
5492bbf
commit d9bf22c
Showing
12 changed files
with
273 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
python3 -m venv .venv | ||
. .venv/bin/activate | ||
pip install wheel # For building blspy | ||
pip install -e . | ||
pip install -r requirements.txt | ||
|
||
# Install libgmp, libboost, and libflint, and then run the following | ||
# Check for git clone of flint2 on MacOS and install if found | ||
if [ -f flint2/configure ]; then | ||
cd flint2/ | ||
if [ ! -f Makefile ]; then | ||
./configure | ||
fi | ||
make -j4 | ||
make install | ||
cd ../ | ||
fi | ||
|
||
cd lib/chiavdf/fast_vdf && sh install.sh | ||
echo "\nChia blockchain install.sh complete." | ||
echo "" | ||
echo "Chia blockchain install.sh complete." | ||
echo "For assistance join us on Keybase in the #testnet chat channel" | ||
echo "https://keybase.io/team/chia_network.public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ `uname` = "Linux" ] && type apt-get; then | ||
# Debian/Ubuntu | ||
sudo apt-get install -y libgmp3-dev libflint-dev \ | ||
libboost-dev libboost-system-dev | ||
fi | ||
|
||
# Install libgmp, libboost, and libflint, and then run the following | ||
# Check for git clone of flint2 on MacOS and install if found | ||
if [ -f flint2/configure ]; then | ||
cd flint2/ | ||
if [ ! -f Makefile ]; then | ||
./configure | ||
fi | ||
make -j4 | ||
make install | ||
cd ../ | ||
fi | ||
|
||
make -C lib/chiavdf/fast_vdf | ||
|
||
echo "" | ||
echo "Chia blockchain install_timelord.sh complete." | ||
echo "For assistance join us on Keybase in the #testnet chat channel" | ||
echo "https://keybase.io/team/chia_network.public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
UNAME := $(shell uname) | ||
|
||
ifeq ($(UNAME),Linux) | ||
ALL_INSTR := $(shell grep -w avx2 /proc/cpuinfo | grep -w fma | grep -w -q adx \ | ||
&& echo 1 || echo 0) | ||
else | ||
ALL_INSTR := 0 | ||
endif | ||
|
||
LDFLAGS += -no-pie | ||
LDLIBS += -lgmpxx -lgmp -lflint -lboost_system -pthread | ||
CXXFLAGS += -std=c++1z -D VDF_MODE=0 -D ENABLE_ALL_INSTRUCTIONS=$(ALL_INSTR) \ | ||
-no-pie -pthread -march=native | ||
ifeq ($(UNAME),Darwin) | ||
CXXFLAGS += -D CHIAOSX=1 | ||
else | ||
OPT_CFLAGS = -O3 | ||
endif | ||
|
||
.PHONY: all clean | ||
|
||
all: vdf_server | ||
|
||
clean: | ||
rm -f *.o vdf_server compile_asm | ||
|
||
vdf_server: vdf_server.o asm_compiled.o | ||
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) | ||
|
||
vdf_server.o: CXXFLAGS += $(OPT_CFLAGS) | ||
|
||
asm_compiled.s: compile_asm | ||
./compile_asm | ||
|
||
compile_asm: compile_asm.o | ||
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.