Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 7e0eb1a

Browse files
committed
v1.7.20
1 parent 1bdfc84 commit 7e0eb1a

File tree

9 files changed

+20
-9
lines changed

9 files changed

+20
-9
lines changed

bin/printversion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
echo "VERSION=1.7.16" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
1+
echo "VERSION=1.7.20" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

bin/printversion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
VERSION="1.7.16"
2+
VERSION="1.7.20"
33
echo "VERSION=$VERSION" >> $GITHUB_ENV

native/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ default-features = false
1515
features = ["napi-6"]
1616

1717
[dependencies]
18-
zecwalletlitelib = { git = "https://github.com/adityapk00/zecwallet-light-cli", rev = "3533e79c31df8782e50f82516f6f99fe7699aba8" }
18+
zecwalletlitelib = { git = "https://github.com/adityapk00/zecwallet-light-cli", rev = "4276057e9fcdc15f3dd5b4aacd12951d3fec3c48" }
1919
#zecwalletlitelib = { path = "../../zecwallet-light-cli/lib" }
2020
lazy_static = "1.4.0"

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zecwallet-lite",
33
"productName": "Zecwallet Lite",
4-
"version": "1.7.16",
4+
"version": "1.7.20",
55
"private": true,
66
"description": "Zecwallet Lite",
77
"license": "MIT",
@@ -110,6 +110,9 @@
110110
"react-start": "node scripts/start.js",
111111
"neon": "cargo-cp-artifact -nc src/native.node -- cargo build --release --manifest-path native/Cargo.toml --message-format=json-render-diagnostics"
112112
},
113+
"electronmon": {
114+
"patterns": ["!native/**"]
115+
},
113116
"eslintConfig": {
114117
"extends": [
115118
"react-app",

src/components/AppState.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class Info {
155155
zecPrice: number;
156156
encrypted: boolean;
157157
locked: boolean;
158+
walletHeight: number;
158159

159160
constructor() {
160161
this.testnet = false;
@@ -167,6 +168,7 @@ export class Info {
167168
this.zecPrice = 0;
168169
this.encrypted = false;
169170
this.locked = false;
171+
this.walletHeight = 0;
170172
}
171173
}
172174

src/components/LoadingScreen.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,15 @@ class LoadingScreen extends Component<Props & RouteComponentProps, LoadingScreen
282282
}
283283

284284
if (!isNaN(progress_blocks)) {
285+
let batch_progress = (progress_blocks * 100) / ss.total_blocks;
286+
if (isNaN(batch_progress)) {
287+
batch_progress = 0;
288+
}
285289
const currentStatus = (
286290
<div>
287291
Syncing batch {ss.batch_num} of {ss.batch_total}
288292
<br />
289-
Batch Progress: {((progress_blocks * 100) / ss.total_blocks).toFixed(2)}%. Total progress:{" "}
290-
{progress.toFixed(2)}%.
293+
Batch Progress: {batch_progress.toFixed(2)}%. Total progress: {progress.toFixed(2)}%.
291294
<br />
292295
<br />
293296
Please wait... This could take several minutes or hours

src/components/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class Sidebar extends PureComponent<Props & RouteComponentProps, State> {
276276
openErrorModal(
277277
"Zecwallet Lite",
278278
<div className={cstyles.verticalflex}>
279-
<div className={cstyles.margintoplarge}>Zecwallet Lite v1.7.16</div>
279+
<div className={cstyles.margintoplarge}>Zecwallet Lite v1.7.20</div>
280280
<div className={cstyles.margintoplarge}>Built with Electron. Copyright (c) 2018-2021, Aditya Kulkarni.</div>
281281
<div className={cstyles.margintoplarge}>
282282
The MIT License (MIT) Copyright (c) 2018-2021 Zecwallet
@@ -735,7 +735,7 @@ class Sidebar extends PureComponent<Props & RouteComponentProps, State> {
735735
{state === "CONNECTED" && (
736736
<div className={[cstyles.padsmallall, cstyles.margintopsmall, cstyles.blackbg].join(" ")}>
737737
<i className={[cstyles.green, "fas", "fa-check"].join(" ")} />
738-
&nbsp; Connected
738+
&nbsp; {info.walletHeight}
739739
</div>
740740
)}
741741
{state === "SYNCING" && (

src/rpc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ export default class RPC {
203203
info.encrypted = encJSON.encrypted;
204204
info.locked = encJSON.locked;
205205

206+
const walletHeight = RPC.fetchWalletHeight();
207+
info.walletHeight = walletHeight;
208+
206209
return info;
207210
} catch (err) {
208211
console.log("Failed to parse info", err);

0 commit comments

Comments
 (0)