Skip to content

Commit f0c16ba

Browse files
committed
1.8.0
1 parent e919172 commit f0c16ba

File tree

7 files changed

+58
-19
lines changed

7 files changed

+58
-19
lines changed

README.md

+20-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ZecWallet Fullnode is a z-Addr first, Sapling compatible wallet and full node fo
55

66
# Installation
77

8-
**Note**: Zecwallet Fullnode will download the **entire blockchain (about 26GB)**, and requires some familiarity with the command line. If you don't want to download the blockchain but prefer a Lite wallet, please check out [Zecwallet Lite](https://www.zecwallet.co).
8+
**Note**: Zecwallet Fullnode will download the **entire blockchain (about 36GB)**, and requires some familiarity with the command line. If you don't want to download the blockchain but prefer a Lite wallet, please check out [Zecwallet Lite](https://www.zecwallet.co).
99

1010
Head over to the releases page and grab the latest installers or binary. https://www.zecwallet.co
1111

@@ -14,13 +14,13 @@ Head over to the releases page and grab the latest installers or binary. https:/
1414
If you are on Debian/Ubuntu, please download the '.AppImage' package and just run it.
1515

1616
```
17-
./Zecwallet.Fullnode-1.8.0-beta2.AppImage
17+
./Zecwallet.Fullnode-1.8.0.AppImage
1818
```
1919

2020
If you prefer to install a `.deb` package, that is also available.
2121

2222
```
23-
sudo apt install -f ./zecwallet_1.8.0-beta2_amd64.deb
23+
sudo apt install -f ./zecwallet_1.8.0_amd64.deb
2424
```
2525

2626
### Windows
@@ -31,23 +31,35 @@ Download and run the `.msi` installer and follow the prompts. Alternately, you c
3131

3232
Double-click on the `.dmg` file to open it, and drag `Zecwallet Fullnode` on to the Applications link to install.
3333

34-
## zcashd
34+
## Running zcashd
3535

3636
ZecWallet needs a Zcash node running zcashd. If you already have a zcashd node running, ZecWallet will connect to it.
3737

38-
If you don't have one, ZecWallet will start its embedded zcashd node.
38+
You need to manually start the zcashd node so that Zecwallet can connect to it. The first time you run zcashd, you need to:
3939

40-
Additionally, if this is the first time you're running ZecWallet or a zcashd daemon, ZecWallet will download the Zcash params (~777 MB) and configure `zcash.conf` for you.
40+
1. Create a zcash.conf file with at least:
41+
42+
```
43+
server=1
44+
rpcuser=<someusername>
45+
rpcpassword=<somepassword>
46+
```
47+
48+
2. Run `./fetch-params.sh` to get the Zcash params
49+
50+
3. Run `./zcashd-wallet-tool` to configure your seed phrase and set up your Orchard accounts.
51+
52+
All binaries needed are included in the distribution.
4153

4254
## Compiling from source
4355

44-
ZecWallet is written in Electron/Javascript and can be build from source. Note that if you are compiling from source, you won't get the embedded zcashd by default. You can either run an external zcashd, or compile zcashd as well.
56+
ZecWallet is written in Electron/Typescript and can be build from source. Note that if you are compiling from source, you won't get the embedded zcashd by default. You can either run an external zcashd, or compile zcashd as well.
4557

4658
#### Pre-Requisits
4759

4860
You need to have the following software installed before you can build Zecwallet Fullnode
4961

50-
- Nodejs v12.16.1 or higher - https://nodejs.org
62+
- Nodejs v14 or higher - https://nodejs.org
5163
- Yarn - https://yarnpkg.com
5264

5365
```

bin/printversion.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
echo "VERSION=1.8.0-beta2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
1+
echo "VERSION=1.8.0" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

bin/printversion.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
VERSION="1.8.0-beta2"
2+
VERSION="1.8.0"
33
echo "VERSION=$VERSION" >> $GITHUB_ENV

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zecwallet",
33
"productName": "Zecwallet Fullnode",
4-
"version": "1.8.0-beta2",
4+
"version": "1.8.0",
55
"description": "Zecwallet Fullnode (Electron version)",
66
"private": true,
77
"main": "./public/electron.js",

src/components/LoadingScreen.tsx

+18-5
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,36 @@ class LoadingScreen extends Component<Props, LoadingScreenState> {
104104
} catch (err) {
105105
// Not yet finished loading. So update the state, and setup the next refresh
106106
const errString: string = (err as any).toString();
107-
this.setState({ currentStatus: errString });
108-
109107
const noConnection = errString.indexOf("NO_CONNECTION") > 0;
110108

111109
if (noConnection) {
112110
// Try to start zcashd
113111
// this.startZcashd();
114112
// this.setupNextGetInfo();
115113
console.log("Cannot start zcashd because it is not supported yet");
116-
this.setState({currentStatus: <div>{errString}<br/>Please make sure zcashd is running.</div>});
114+
this.setState({
115+
currentStatus: (
116+
<div>
117+
{errString}
118+
<br />
119+
Please make sure zcashd is running.
120+
</div>
121+
),
122+
});
117123
}
118124

119-
if (noConnection && zcashdSpawned && getinfoRetryCount < 10) {
125+
if (errString.indexOf('"code":-28') > 0) {
120126
this.setState({ currentStatus: "Waiting for zcashd to start..." });
121127
const inc = getinfoRetryCount + 1;
122128
this.setState({ getinfoRetryCount: inc });
123-
this.setupNextGetInfo();
129+
} else if (errString.indexOf('"code":-8') > 0) {
130+
this.setState({
131+
currentStatus:
132+
"No accounts. Please run 'zcashd-wallet-tool' to create your wallet first...",
133+
});
134+
} else {
135+
// Generic error.
136+
this.setState({ currentStatus: errString });
124137
}
125138

126139
if (noConnection && zcashdSpawned && getinfoRetryCount >= 10) {

src/components/Sidebar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class Sidebar extends PureComponent<Props, State> {
276276
"Zecwallet Fullnode",
277277
<div className={cstyles.verticalflex}>
278278
<div className={cstyles.margintoplarge}>
279-
Zecwallet Fullnode v1.8.0-beta2
279+
Zecwallet Fullnode v1.8.0
280280
</div>
281281
<div className={cstyles.margintoplarge}>
282282
Built with Electron. Copyright (c) 2018-2021, Aditya Kulkarni.

src/rpc.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ export default class RPC {
119119
latestBlockHeight = await this.fetchInfo();
120120
} catch (err) {
121121
// If we caught an error, there's something wrong with the connection.
122-
this.fnSetDisconnected(`${err}`);
122+
const errString = `${err}`;
123+
if (errString.indexOf('"code":-8') > 0) {
124+
this.fnSetDisconnected(
125+
"No accounts. Please run 'zcashd-wallet-tool' to create your wallet first..."
126+
);
127+
} else {
128+
this.fnSetDisconnected(errString);
129+
}
123130
return;
124131
}
125132

@@ -174,7 +181,14 @@ export default class RPC {
174181
console.log(`Finished full refresh at ${latestBlockHeight}`);
175182
} catch (err) {
176183
// If we caught an error, there's something wrong with the connection.
177-
this.fnSetDisconnected(`${err}`);
184+
const errString = `${err}`;
185+
if (errString.indexOf('"code":-8') > 0) {
186+
this.fnSetDisconnected(
187+
"No accounts. Please run 'zcashd-wallet-tool' to create your wallet first..."
188+
);
189+
} else {
190+
this.fnSetDisconnected(errString);
191+
}
178192
return;
179193
}
180194
} else {

0 commit comments

Comments
 (0)