Skip to content

Commit 2fc2caf

Browse files
authored
Beta 1.4 release - Merge pull request #201 from Chia-Network/beta-1.4
Beta 1.4
2 parents 51ab626 + f308e33 commit 2fc2caf

File tree

156 files changed

+8888
-1347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+8888
-1347
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python package
1+
name: Build Ubuntu and MacOS
22

33

44
on: [push]
@@ -28,8 +28,8 @@ jobs:
2828
run: |
2929
sudo apt-get update
3030
sudo apt-get install python3.7-venv python3.7-distutils git -y
31-
#sudo apt-get install libboost-all-dev libssl-dev
32-
31+
sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
32+
# Brutal work around for Github ci
3333

3434
- name: Run install script
3535
env:

.github/workflows/upload-pypi-source.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Upload source distribution to PyPI
22

33
on: [push, pull_request]
44

.github/workflows/windows-installer.yml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,59 @@ name: Build Windows Installer
33
on: [push, pull_request]
44

55
jobs:
6-
upload_source_dist:
7-
name: Upload source distribution
6+
build:
7+
name: Build Windows .msi
88
runs-on: [windows-latest]
99

1010
steps:
1111
- uses: actions/checkout@v1
1212
with:
1313
fetch-depth: 0
1414
# we need fetch-depth 0 so setuptools_scm can resolve tags
15+
16+
- uses: actions/setup-python@v1
17+
name: Install Python 3.7
18+
with:
19+
python-version: '3.7'
20+
21+
- name: curl miniupnpc and setproctitle
22+
working-directory: ${{ github.workspace }}\electron-wix\blockchain
23+
run: |
24+
curl -OL --show-error --fail https://download.chia.net/simple/miniupnpc/miniupnpc-2.1-cp37-cp37m-win_amd64.whl
25+
curl -OL --show-error --fail https://download.chia.net/simple/setproctitle/setproctitle-1.1.10-cp37-cp37m-win_amd64.whl
26+
27+
- name: Collect and Create wheels for chia-blockchain
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install pep517 wheel
31+
pip wheel --use-pep517 --only-binary cbor2 --extra-index-url https://download.chia.net/simple/ -f ${{ github.workspace }} --wheel-dir=${{ github.workspace }}\electron-wix\blockchain ${{ github.workspace }}\.
32+
33+
- name: Install electron-packager
34+
run: |
35+
npm install electron-packager -g
36+
37+
- name: npm install
38+
working-directory: ${{ github.workspace }}\electron-ui
39+
run: |
40+
npm install --runtime=electron --target=1.7.6
41+
42+
- name: curl Visual C++ 2019 redistributable # Windows has curl natively
43+
working-directory: ${{ github.workspace }}\electron-wix\prerequisites\
44+
run: curl -OL --show-error --fail https://aka.ms/vs/16/release/vc_redist.x64.exe
45+
46+
- name: curl Python 3.7.6 Installer
47+
working-directory: ${{ github.workspace }}\electron-wix\prerequisites\
48+
run: curl -OL --show-error --fail https://www.python.org/ftp/python/3.7.6/python-3.7.6-amd64.exe
49+
50+
- name: Build Windows installer with Wix
51+
env:
52+
version: 0.1.10 # TODO Need to create this from setuptools_scm for Windows
53+
working-directory: ${{ github.workspace }}\electron-wix
54+
run: |
55+
.\rebuild-all.ps1
56+
57+
- name: Upload artifacts
58+
uses: actions/upload-artifact@v1
59+
with:
60+
name: Windows-Installers
61+
path: ${{ github.workspace }}\electron-wix\final

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ activate
6464
# Packaging
6565
chia-blockchain.tar.gz
6666

67+
# Timelord utilities
68+
vdf_bench
69+
6770
# Electron wallet node modules
6871
src/wallet/electron/node_modules/
6972

7073
# Node modules
7174
**/node_modules
75+
76+
# Offer Files
77+
*.offer

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ We are happy that you are taking a look at the code for Chia, a proof of space a
44

55
A lot of fascinating new cryptography and blockchain concepts are used and implemented here.
66
This repo includes the code for the Chia full node, farmer, and timelord (in src), which are all written in python.
7-
It also includes a verifiable delay function implementation under lib/chiavdf (in c/c++), and a proof of space implementation under lib/chiapos.
7+
It also includes a verifiable delay function implementation that it imports from the [chiavdf repo](https://github.com/Chia-Network/chiavdf) (in c/c++), and a proof of space implementation that it imports from the [chiapos repo](https://github.com/Chia-Network/chiapos). BLS signatures are imported from the [bls-signatures repo](https://github.com/Chia-Network/bls-signatures) as blspy. There is an additional dependency on the [chiabip158 repo](https://github.com/Chia-Network/chiabip158). For major platforms, binary and source wheels are shipped to PyPI from each dependent repo and then chia-blockchain can pip install those from PyPI or they can be prepackaged as is done for the Windows installer. On unsupported ploatforms, pip will fall back to the source distributions to be compiled locally.
88

99
If you want to learn more about this project, read the [wiki](https://github.com/Chia-Network/chia-blockchain/wiki), or check out the [green paper](https://www.chia.net/assets/ChiaGreenPaper.pdf).
1010

INSTALL.md

Lines changed: 3 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,5 @@
1-
## Installation
1+
# Installation
22

3-
To install the chia-blockchain node, follow the instructions according to your operating system.
4-
After installing, follow the remaining instructions in [README.md](README.md) to run the software.
3+
Install instructions have been moved to the [INSTALL](https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL) section of the repository [Wiki](https://github.com/Chia-Network/chia-blockchain/wiki)
54

6-
### MacOS
7-
Currently Catalina (10.15.x) is required.
8-
Make sure [brew](https://brew.sh/) is available before starting the setup.
9-
```bash
10-
git clone https://github.com/Chia-Network/chia-blockchain.git
11-
cd chia-blockchain
12-
13-
sh install.sh
14-
. ./activate
15-
```
16-
17-
### Debian/Ubuntu
18-
19-
Install dependencies for Ubuntu 18.04, Ubuntu 19.x or newer.
20-
```bash
21-
sudo apt-get update
22-
sudo apt-get install python3.7-venv python3.7-distutils git -y
23-
24-
# Either checkout the source and install
25-
git clone https://github.com/Chia-Network/chia-blockchain.git
26-
cd chia-blockchain
27-
28-
sh install.sh
29-
30-
. ./activate
31-
32-
# Or install chia-blockchain as a binary package
33-
python3.7 -m venv venv
34-
ln -s venv/bin/activate
35-
. ./activate
36-
pip install --upgrade pip
37-
pip install -i https://hosted.chia.net/simple/ miniupnpc==2.0.2 setproctitle==1.1.10 cbor2==5.0.1
38-
39-
pip install chia-blockchain==1.0.beta3
40-
```
41-
42-
### Windows (WSL)
43-
#### Install WSL2 + Ubuntu 18.04 LTS
44-
45-
From an Administrator PowerShell
46-
```
47-
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
48-
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all
49-
```
50-
You will be prompted to reboot. Once that is complete, install Ubuntu 18.04 LTS from the Microsoft Store and run it and complete its initial install steps. You now have linux bash shell that can run linux native software on Windows.
51-
52-
Then follow the steps below which are the same as the usual Ubuntu instructions above.
53-
```bash
54-
sudo apt-get update
55-
sudo apt-get install python3.7-venv python3.7-distutils git -y
56-
57-
# Either checkout the source and install
58-
git clone https://github.com/Chia-Network/chia-blockchain.git
59-
cd chia-blockchain
60-
61-
sh install.sh
62-
63-
. ./activate
64-
65-
# Or install chia-blockchain as a binary package
66-
python3.7 -m venv venv
67-
ln -s venv/bin/activate
68-
. ./activate
69-
pip install --upgrade pip
70-
pip install -i https://hosted.chia.net/simple/ miniupnpc==2.0.2 setproctitle==1.1.10 cbor2==5.0.1
71-
72-
pip install chia-blockchain==1.0.beta3
73-
```
74-
You will need to download the Windows native Wallet and unzip into somewhere convenient in Windows. You may have to choose "More Info" and "Run Anyway" to be able to run the currently unsigned installer. This will place a Chia icon in your Start menu and on your Desktop that starts the Wallet UI.
75-
76-
[Download: Chia-Wallet-Install-0.1.3](https://hosted.chia.net/beta-1.3-win64-wallet/Chia-Wallet-Install-0.1.3.msi)
77-
78-
Instead of `chia-start-wallet-ui &` as explained in the [README.md](README.md) you run `chia-start-wallet-server &` in Ubuntu/WSL 2 to allow the Wallet to connect to the Full Node running in Ubuntu/WSL 2. Once you've enabled `chia-start-wallet-server &` you can run "Chia" from the Start menu or your Desktop.
79-
80-
### Amazon Linux 2
81-
82-
```bash
83-
sudo yum update -y
84-
sudo yum install python3 git -y
85-
86-
git clone https://github.com/Chia-Network/chia-blockchain.git
87-
cd chia-blockchain
88-
89-
sh install.sh
90-
91-
. ./activate
92-
93-
# Or install chia-blockchain as a binary package
94-
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
95-
sudo yum install -y nodejs
96-
97-
python3.7 -m venv venv
98-
ln -s venv/bin/activate
99-
. ./activate
100-
pip install --upgrade pip
101-
pip install -i https://hosted.chia.net/simple/ miniupnpc==2.0.2 setproctitle==1.1.10 cbor2==5.0.1
102-
103-
pip install chia-blockchain==1.0.beta3
104-
```
105-
106-
### CentOS/RHEL 7.7 or newer
107-
108-
```bash
109-
sudo yum update -y
110-
111-
# Compiling python 3.7 is generally required on CentOS 7.7 and newer
112-
sudo yum install gcc openssl-devel bzip2-devel libffi libffi-devel -y
113-
sudo yum install libsqlite3x-devel -y
114-
115-
wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
116-
tar -zxvf Python-3.7.7.tgz ; cd Python-3.7.7
117-
./configure --enable-optimizations; sudo make install; cd ..
118-
119-
# Download and install the source version
120-
git clone https://github.com/Chia-Network/chia-blockchain.git
121-
cd chia-blockchain
122-
123-
sh install.sh
124-
. ./activate
125-
126-
# Or install from binary wheels
127-
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
128-
sudo yum install -y nodejs
129-
130-
python3.7 -m venv venv
131-
ln -s venv/bin/activate
132-
. ./activate
133-
pip install --upgrade pip
134-
pip install -i https://hosted.chia.net/simple/ miniupnpc==2.0.2 setproctitle==1.1.10 cbor2==5.0.1
135-
136-
pip install chia-blockchain==1.0.beta3
137-
```
5+
After installing, follow the remaining instructions in the [Quick Start Guide](https://github.com/Chia-Network/chia-blockchain/wiki/Quick-Start-Guide) to run the software.

0 commit comments

Comments
 (0)