Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 7, 2023
2 parents 9521feb + 371145b commit c6fa609
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 119 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# 0.110.2 (2023-07-07)

### CKB Node & Light Client

- [CKB@v0.110.0](https://github.com/nervosnetwork/ckb/releases/tag/v0.110.0) was released on May. 17th, 2023. This version of CKB node is now bundled and preconfigured in Neuron.
- [CKB Light Client@v0.2.4](https://github.com/nervosnetwork/ckb-light-client/releases/tag/v0.2.4) was released on May. 28th, 2023. This version of CKB Light Client is now bundled and preconfigured in Neuron

#### Caveat

**CKB Light Client** is only activated on testnet, thus only `light testnet` is enabled in Neuron. **CKB Light Client on Mainnet** requires a hardfork on the mainnet in the future.
**CKB@v0.110** requires data migration, which is irreversible. Be cautious to start the migration without a backup. [How to back up data of ckb node](https://github.com/nervosnetwork/neuron/issues/2557#issue-1512510978)

> On the other hand, we strongly recommend you to back up the old data before migrating, the **ckb node data path** can be found by clicking **preference -> Data -> CKB Node Config & Storage**. Because once the migration starts, the data will be no longer compatible with all older versions of CKB.
### Assumed valid target

Block before `0xc0c532e10c708852d9586be46a5ed8317b2aa0835c721aa691abffb9bf4a26cd`(at height `10,004,892`) will be skipped in validation.(#2689)

## Bug fixes

- #2760: Avoid generating deposit DAO when the dialog is not visible.(@yanguoyu)


**Full Changelog**: https://github.com/nervosnetwork/neuron/compare/v0.110.1...v0.110.2


# 0.110.1 (2023-05-31)

### CKB Node & Light Client
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["packages/*"],
"version": "0.110.1",
"version": "0.110.2",
"npmClient": "yarn",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "neuron",
"productName": "Neuron",
"description": "CKB Neuron Wallet",
"version": "0.110.0",
"version": "0.110.2",
"private": true,
"author": {
"name": "Nervos Core Dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neuron-ui",
"version": "0.110.1",
"version": "0.110.2",
"private": true,
"author": {
"name": "Nervos Core Dev",
Expand Down
6 changes: 6 additions & 0 deletions packages/neuron-ui/src/components/NervosDAO/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export const useGenerateDaoDepositTx = ({
t,
depositValue,
suggestFeeRate,
showDepositDialog,
}: {
setErrorMessage: React.Dispatch<React.SetStateAction<string>>
clearGeneratedTx: () => void
Expand All @@ -150,10 +151,14 @@ export const useGenerateDaoDepositTx = ({
t: TFunction
depositValue: string
suggestFeeRate: string | number
showDepositDialog: boolean
}) => {
const timer = useRef<ReturnType<typeof setTimeout>>()
useEffect(() => {
clearTimeout(timer.current)
if (!showDepositDialog) {
return
}
timer.current = setTimeout(() => {
setErrorMessage('')
clearGeneratedTx()
Expand Down Expand Up @@ -222,6 +227,7 @@ export const useGenerateDaoDepositTx = ({
isBalanceReserved,
depositValue,
suggestFeeRate,
showDepositDialog,
])
}

Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/components/NervosDAO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const NervosDAO = () => {
t,
depositValue,
suggestFeeRate,
showDepositDialog,
})
const updateDepositValue = hooks.useUpdateDepositValue({ setDepositValue })

Expand Down
4 changes: 2 additions & 2 deletions packages/neuron-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Neuron",
"description": "CKB Neuron Wallet",
"homepage": "https://www.nervos.org/",
"version": "0.110.1",
"version": "0.110.2",
"private": true,
"author": {
"name": "Nervos Core Dev",
Expand Down Expand Up @@ -88,7 +88,7 @@
"electron-builder": "23.6.0",
"electron-devtools-installer": "3.2.0",
"jest-when": "3.5.2",
"neuron-ui": "0.110.1",
"neuron-ui": "0.110.2",
"typescript": "5.0.4"
}
}
262 changes: 148 additions & 114 deletions yarn.lock

Large diffs are not rendered by default.

1 comment on commit c6fa609

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 5484183646

Please sign in to comment.