Skip to content

Commit e4810ce

Browse files
authored
Merge pull request #1480 from nervosnetwork/rc/v0.29.0
[ᚬmaster] Rc/v0.29.0
2 parents a563a02 + a255220 commit e4810ce

File tree

84 files changed

+1534
-1276
lines changed

Some content is hidden

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

84 files changed

+1534
-1276
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
Please enter details.
12+
13+
**Environment (please complete the following information):**
14+
- OS & Version: [e.g. Windows 10, macOS 10.15.2, Linux Ubuntu 18.04]
15+
- Neuron Version [e.g. 0.28.0]
16+
- Block Number: [Check that from `Overview` - `Blockchain Status` for v0.29.0-rc2 or before, or hover onto the left bottom syncing status area for v0.29.0 and later]
17+
18+
**Steps To Reproduce**
19+
Steps to reproduce the behavior:
20+
1. Go to '...'
21+
2. Click on '....'
22+
3. Scroll down to '....'
23+
4. See error
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# 0.29.0-rc3 (2020-03-24)
2+
3+
This is an RC version to preview the changes in the next release.
4+
5+
### Bundled CKB node
6+
7+
CKB v0.29.0 was released on Feb 26th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.
8+
9+
### New features
10+
11+
We added several new features with this version:
12+
13+
* Sign/Verify message: Sign a message with an address and its private key, or verify a signed message with an address and its public key.
14+
* Customized assets: List customized assets that have non-standard cells, e.g. cells with locktime. Holders with locked assets from the genesis block would be able to view them now.
15+
* Transaction with locktime: Send a transaction that could only be released after the locktime.
16+
* Synced block number: Hover over the sync status area on the left bottom and check the CKB tip block number and Neuron synced block number, to see the process of the syncing.
17+
18+
### Performance tweak
19+
20+
Thanks to the community we have found and fixed a serious performance issue. Miner wallets usually receive transactions with huge amount of inputs. When syncing this kind of wallets Neuron became very slow and unresponsive, and couldn't calculate the balance correctly. With this release we've tweaked the sync process, making it run faster and handle transactions with many inputs/outputs properly.
21+
22+
### Bug fixes
23+
24+
* Fixed serveral syncing issues causing incorrect balance.
25+
* Fixed a bug that when clearing cache transaction description would be lost.
26+
27+
128
# 0.29.0-rc2 (2020-03-10)
229

330
This is an RC version to preview the changes in the next release.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Nervos CKB Desktop Wallet
77

88
---
99

10+
## FAQ
11+
12+
Got a question about Neuron? Please check out the [FAQ](https://docs.nervos.org/references/neuron-faq.html).
13+
1014
## Quick Start
1115

1216
### Prerequisites
@@ -33,6 +37,8 @@ $ yarn bootstrap
3337

3438
As of `v0.26.0`, Neuron bundles a CKB binary and starts it for Mainnet automatically. If you prefer to run a local CKB node yourself instead, please follow the [Nervos CKB doc](https://docs.nervos.org/references/neuron-wallet-guide.html#1-run-a-ckb-mainnet-node) to get it up and running before launching Neuron.
3539

40+
**Note**: If you run CKB node on Windows but it fails to start, you may need to download and install the latest [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
41+
3642
### Start Neuron in Development Mode
3743

3844
```shell

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.29.0-rc2",
5+
"version": "0.29.0-rc3",
66
"npmClient": "yarn",
77
"useWorkspaces": true
88
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "neuron",
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
5-
"version": "0.29.0-rc2",
5+
"version": "0.29.0-rc3",
66
"private": true,
77
"author": {
88
"name": "Nervos Core Dev",

packages/neuron-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuron-ui",
3-
"version": "0.29.0-rc2",
3+
"version": "0.29.0-rc3",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",

packages/neuron-ui/public/css/fonts.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@
3232
font-family: 'SourceHanSansCN-Bold';
3333
src: url('../fonts/SourceHanSansCN-Bold.otf') format('truetype');
3434
}
35+
36+
@font-face {
37+
font-family: 'SourceCodePro-Regular';
38+
src: url('../fonts/SourceCodePro-Regular.ttf') format('truetype')
39+
}
188 KB
Binary file not shown.

packages/neuron-ui/src/components/DepositDialog/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useMemo, useRef } from 'react'
1+
import React, { useMemo, useCallback, useRef } from 'react'
22
import { Slider, SpinnerSize } from 'office-ui-fabric-react'
33
import { useTranslation, Trans } from 'react-i18next'
44
import TextField from 'widgets/TextField'
@@ -56,6 +56,18 @@ const DepositDialog = ({
5656
[]
5757
)
5858
const maxValue = +(maxDepositAmount / BigInt(SHANNON_CKB_RATIO)).toString()
59+
const disabled = !isTxGenerated
60+
61+
const onConfirm = useCallback(
62+
(e: React.FormEvent) => {
63+
e.preventDefault()
64+
if (disabled) {
65+
return
66+
}
67+
onSubmit()
68+
},
69+
[onSubmit, disabled]
70+
)
5971

6072
if (!show) {
6173
return null
@@ -66,7 +78,7 @@ const DepositDialog = ({
6678
{isDepositing ? (
6779
<Spinner size={SpinnerSize.large} />
6880
) : (
69-
<>
81+
<form onSubmit={onConfirm}>
7082
<h2 title={t('nervos-dao.deposit-dialog-title`')} className={styles.title}>
7183
{t('nervos-dao.deposit-dialog-title')}
7284
</h2>
@@ -92,9 +104,9 @@ const DepositDialog = ({
92104
</div>
93105
<div className={styles.footer}>
94106
<Button type="cancel" onClick={onDismiss} label={t('nervos-dao.cancel')} />
95-
<Button type="submit" onClick={onSubmit} label={t('nervos-dao.proceed')} disabled={!isTxGenerated} />
107+
<Button type="submit" label={t('nervos-dao.proceed')} disabled={disabled} />
96108
</div>
97-
</>
109+
</form>
98110
)}
99111
</dialog>
100112
)

packages/neuron-ui/src/components/History/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect, useMemo } from 'react'
1+
import React, { useCallback, useMemo } from 'react'
22
import { useHistory, useLocation } from 'react-router-dom'
33
import { useTranslation } from 'react-i18next'
44
import { Stack, SearchBox } from 'office-ui-fabric-react'
@@ -34,11 +34,6 @@ const History = () => {
3434
const isMainnet = isMainnetUtil(networks, networkID)
3535

3636
const { keywords, onKeywordsChange } = useSearch(search, id, dispatch)
37-
useEffect(() => {
38-
if (id) {
39-
history.push(`${Routes.History}?pageNo=1&keywords=${''}`)
40-
}
41-
}, [id, history])
4237
const onSearch = useCallback(() => history.push(`${Routes.History}?keywords=${keywords}`), [history, keywords])
4338

4439
const tipBlockNumber = useMemo(() => {

0 commit comments

Comments
 (0)