Skip to content

Commit 512162b

Browse files
authored
Merge pull request #1907 from nervosnetwork/hotfix/0.33.1
Hotfix/0.33.1
2 parents 1e4f19a + bb1beea commit 512162b

File tree

12 files changed

+67
-15
lines changed

12 files changed

+67
-15
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 0.33.1 (2020-11-16)
2+
3+
[CKB v0.35.1](https://github.com/nervosnetwork/ckb/releases/tag/v0.35.1) was released on Sept. 14th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.
4+
5+
### Hotfix
6+
7+
* Includes the `hd_public_key_info` table info in debug log.
8+
* Requires the **x64** version of vcredist component on Windows.
9+
10+
111
# 0.33.0 (2020-10-14)
212

313
[CKB v0.35.1](https://github.com/nervosnetwork/ckb/releases/tag/v0.35.1) was released on Sept. 14th, 2020. This version of CKB node is now bundled and preconfigured in Neuron.

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.33.0",
5+
"version": "0.33.1",
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.33.0",
5+
"version": "0.33.1",
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.33.0",
3+
"version": "0.33.1",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",

packages/neuron-wallet/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
55
"homepage": "https://www.nervos.org/",
6-
"version": "0.33.0",
6+
"version": "0.33.1",
77
"private": true,
88
"author": {
99
"name": "Nervos Core Dev",
@@ -79,7 +79,7 @@
7979
"electron-notarize": "0.2.1",
8080
"jest-when": "2.7.2",
8181
"lint-staged": "9.2.5",
82-
"neuron-ui": "0.33.0",
82+
"neuron-ui": "0.33.1",
8383
"rimraf": "3.0.0",
8484
"ttypescript": "1.5.10"
8585
}

packages/neuron-wallet/src/controllers/export-debug.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { t } from 'i18next'
99
import { ckbDataPath } from 'services/ckb-runner'
1010
import NetworksService from 'services/networks'
1111
import SyncedBlockNumber from 'models/synced-block-number'
12+
import AddressService from 'services/addresses'
1213

1314
export default class ExportDebugController {
1415
#I18N_PATH = 'export-debug-info'
@@ -34,7 +35,7 @@ export default class ExportDebugController {
3435
return
3536
}
3637
this.archive.pipe(fs.createWriteStream(filePath))
37-
await Promise.all([this.addStatusFile(), this.addBundledCKBLog(), this.addLogFiles()])
38+
await Promise.all([this.addStatusFile(), this.addBundledCKBLog(), this.addLogFiles(), this.addHdPublicKeyInfoCsv()])
3839
await this.archive.finalize()
3940
dialog.showMessageBox({
4041
type: 'info',
@@ -122,6 +123,17 @@ export default class ExportDebugController {
122123
})
123124
}
124125

126+
private async addHdPublicKeyInfoCsv() {
127+
const addressMetas = await AddressService.getAddressesByAllWallets()
128+
let csv = 'walletId,addressType,addressIndex,publicKeyInBlake160\n'
129+
for (const addressMeta of addressMetas) {
130+
const row = `${addressMeta.walletId},${addressMeta.addressType},${addressMeta.addressIndex},${addressMeta.blake160}\n`
131+
csv += row
132+
}
133+
const csvFileName = 'hd_public_key_info.csv'
134+
this.archive.append(csv, { name: csvFileName })
135+
}
136+
125137
private addLogFiles = (files = ['main.log', 'renderer.log']) => {
126138
const logFile = logger.transports.file.getFile()
127139
if (!logFile?.path) {

packages/neuron-wallet/src/database/chain/cleaner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import OutputEntity from './entities/output'
44
import TransactionEntity from './entities/transaction'
55
import SyncInfoEntity from './entities/sync-info'
66
import IndexerTxHashCache from './entities/indexer-tx-hash-cache'
7-
import HdPublicKeyInfo from './entities/hd-public-key-info'
87

98
// Clean local sqlite storage
109
export default class ChainCleaner {
1110
public static async clean() {
1211
Promise.all(
13-
[InputEntity, OutputEntity, TransactionEntity, IndexerTxHashCache, HdPublicKeyInfo].map(entity => {
12+
[InputEntity, OutputEntity, TransactionEntity, IndexerTxHashCache].map(entity => {
1413
return getConnection().getRepository(entity).clear()
1514
})
1615
)

packages/neuron-wallet/src/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default {
134134
'ckb-dependency': {
135135
title: 'Bundled CKB Node',
136136
message: 'Dependency Required',
137-
detail: `The embedded CKB node in Neuron requires Microsoft Visual C++ Redistributable component to be installed to work properly. You have to install it to enable the internal node. If you'd like to use a remote CKB node, you can skip this step.`,
137+
detail: `The embedded CKB node in Neuron requires x64 version of Microsoft Visual C++ Redistributable component to be installed to work properly. You have to install it to enable the internal node. If you'd like to use a remote CKB node, you can skip this step.`,
138138
buttons: {
139139
'skip': 'Skip',
140140
'install-and-exit': 'Install and Exit'

packages/neuron-wallet/src/locales/zh-tw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default {
132132
'ckb-dependency': {
133133
title: '內置 CKB 節點',
134134
message: '缺少必要的依賴',
135-
detail: 'Neuron 內置的 CKB 節點需要安裝 Microsoft Visual C++ Redistributable 才能正常運行。您需要安裝該組件來啟動內置節點。如果您使用外部節點,也可以跳過該步驟。',
135+
detail: 'Neuron 內置的 CKB 節點需要安裝 x64 版本的 Microsoft Visual C++ Redistributable 才能正常運行。您需要安裝該組件來啟動內置節點。如果您使用外部節點,也可以跳過該步驟。',
136136
buttons: {
137137
'skip': '跳過',
138138
'install-and-exit': '安裝並退出'

packages/neuron-wallet/src/locales/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default {
133133
'ckb-dependency': {
134134
title: '内置 CKB 节点',
135135
message: '缺少必要的依赖',
136-
detail: 'Neuron 内置的 CKB 节点需要安装 Microsoft Visual C++ Redistributable 才能正常运行。您需要安装该组件来启用内置节点。如果您使用外部节点,也可以跳过该步骤。',
136+
detail: 'Neuron 内置的 CKB 节点需要安装 x64 版本的 Microsoft Visual C++ Redistributable 才能正常运行。您需要安装该组件来启用内置节点。如果您使用外部节点,也可以跳过该步骤。',
137137
buttons: {
138138
'skip': '跳过',
139139
'install-and-exit': '安装并退出'

0 commit comments

Comments
 (0)