Skip to content

Commit 7386d5b

Browse files
authored
Merge branch 'develop' into feature/jest-unit-tests
2 parents a89db96 + 6642785 commit 7386d5b

File tree

17 files changed

+89
-66
lines changed

17 files changed

+89
-66
lines changed

CHANGELOG.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,39 @@
22

33
## vNext
44

5-
## Chores
5+
### Chores
66

77
- Added jest library for unit testing ([PR 2633](https://github.com/input-output-hk/daedalus/pull/2633))
8+
- Updated `cardano-launcher` to version `0.20211105.1` and added Cardano Node RTS flags which improve resource usage ([PR 2735](https://github.com/input-output-hk/daedalus/pull/2735), [PR 2741](https://github.com/input-output-hk/daedalus/pull/2741))
9+
10+
## 4.5.1
11+
12+
### Fixes
13+
14+
- Fixed cardano-node startup race condition
15+
- Fixed automatic closing of the wallet "Restoration" dialog during restoration of a first wallet in UI
16+
- Fixed Daedalus 4.5.0 Windows deployment issue
817

918
## 4.5.0
1019

1120
### Features
1221

1322
- Implemented "Catalyst Fund7" voting registration changes ([PR 2732](https://github.com/input-output-hk/daedalus/pull/2732))
14-
- Added Over-saturation warning in delegation wizard ([PR 2733](https://github.com/input-output-hk/daedalus/pull/2733))
23+
- Added "Over-saturation" warning in the delegation wizard ([PR 2733](https://github.com/input-output-hk/daedalus/pull/2733), [PR 2738](https://github.com/input-output-hk/daedalus/pull/2738))
1524
- Added Catalyst footer links ([PR 2721](https://github.com/input-output-hk/daedalus/pull/2721))
16-
- Fixed the Delegation popover timeout ([PR 2722](https://github.com/input-output-hk/daedalus/pull/2722))
17-
- Removed "Alonzo tada" icon and "Alonzo countdown" screen ([PR 2708](https://github.com/input-output-hk/daedalus/pull/2708))
1825

1926
### Fixes
2027

28+
- Fixed the Delegation popover timeout ([PR 2722](https://github.com/input-output-hk/daedalus/pull/2722))
2129
- Fixed issues relating to minimum window size in Daedalus ([PR 2719](https://github.com/input-output-hk/daedalus/pull/2719))
2230
- Updated "Trezor T" image shown on the "Pair a hardware wallet device" dialog ([PR 2712](https://github.com/input-output-hk/daedalus/pull/2712))
2331
- Fixed transaction timestamps localization ([PR 2702](https://github.com/input-output-hk/daedalus/pull/2702))
24-
- Small UI/UX Fixes ([PR 2685](https://github.com/input-output-hk/daedalus/pull/2685))
32+
- Small UI/UX Fixes ([PR 2685](https://github.com/input-output-hk/daedalus/pull/2685), [PR 2745](https://github.com/input-output-hk/daedalus/pull/2745))
2533

2634
### Chores
2735

28-
- Improves the Daedalus startup by avoiding unnecessary cardano-node restarts ([PR 2716](https://github.com/input-output-hk/daedalus/pull/2716))
29-
- Updated `cardano-launcher` to version `0.20211105.1` and added Cardano Node RTS flags which improve resource usage ([PR 2734](https://github.com/input-output-hk/daedalus/pull/2734))
36+
- Removed "Alonzo tada" icon and "Alonzo countdown" screen ([PR 2708](https://github.com/input-output-hk/daedalus/pull/2708))
37+
- Improved the Daedalus startup by avoiding unnecessary Cardano Node restarts ([PR 2716](https://github.com/input-output-hk/daedalus/pull/2716))
3038
- Updated README with solution steps for the nix SSL issue ([PR 2727](https://github.com/input-output-hk/daedalus/pull/2727))
3139
- Covered LedgerJS v4.0.0 breaking changes ([PR 2697](https://github.com/input-output-hk/daedalus/pull/2697))
3240
- Added hardware wallet support for all non-public testnets ([PR 2672](https://github.com/input-output-hk/daedalus/pull/2672))

default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ let
3030
});
3131
};
3232
};
33-
pkgs = localLib.iohkNix.pkgsDefault;
34-
pkgsNodeJS = import sources.nixpkgs { inherit system config; };
33+
pkgs = import sources.nixpkgs { inherit system config; };
3534
pkgsNative = localLib.iohkNix.getPkgsDefault {};
3635
sources = localLib.sources;
3736
walletPkgs = import "${sources.cardano-wallet}/nix" {};
@@ -52,11 +51,12 @@ let
5251
ostable.x86_64-darwin = "macos64";
5352
packages = self: {
5453
inherit cluster pkgs version target nodeImplementation;
54+
inherit (pkgs) hello cabal2nix;
5555
cardanoLib = localLib.iohkNix.cardanoLib;
5656
daedalus-bridge = self.bridgeTable.${nodeImplementation};
5757

58-
nodejs = pkgsNodeJS.nodejs-14_x;
59-
nodePackages = pkgsNodeJS.nodePackages.override { nodejs = self.nodejs; };
58+
nodejs = pkgs.nodejs-14_x;
59+
nodePackages = pkgs.nodePackages.override { nodejs = self.nodejs; };
6060
yarnInfo = {
6161
version = "1.22.4";
6262
hash = "1l3sv30g61dcn7ls213prcja2y3dqdi5apq9r7yyick295w25npq";
@@ -314,7 +314,7 @@ let
314314
};
315315
rawapp-win64 = self.rawapp.override { win64 = true; };
316316
source = builtins.filterSource localLib.cleanSourceFilter ./.;
317-
yaml2json = pkgs.haskell.lib.disableCabalFlag pkgs.haskellPackages.yaml "no-exe";
317+
yaml2json = pkgs.haskell.lib.addExtraLibrary (pkgs.haskell.lib.disableCabalFlag pkgs.haskellPackages.yaml "no-exe") pkgs.haskellPackages.optparse-applicative;
318318

319319
electron = pkgs.callPackage ./installers/nix/electron.nix {};
320320

installers/nix/electron.nix

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{ stdenv, lib, libXScrnSaver, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence,
2-
libdrm, libxkbcommon, mesa }:
1+
{ stdenv, lib, makeWrapper, fetchurl, unzip, atomEnv, libuuid, at-spi2-atk, at_spi2_core, libxshmfence,
2+
libxkbcommon }:
33

44
let
55
version = "13.1.1";
@@ -48,15 +48,8 @@ let
4848
4949
patchelf \
5050
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
51-
--set-rpath "${atomEnv.libPath}:${lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core ]}:$out/lib/electron" \
51+
--set-rpath "${atomEnv.libPath}:${lib.makeLibraryPath [ libuuid at-spi2-atk at_spi2_core libxshmfence libxkbcommon ]}:$out/lib/electron" \
5252
$out/lib/electron/electron
53-
54-
wrapProgram $out/lib/electron/electron \
55-
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
56-
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libdrm ]}/libdrm.so.2 \
57-
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxkbcommon ]}/libxkbcommon.so.0 \
58-
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ mesa ]}/libgbm.so.1 \
59-
--prefix LD_PRELOAD : ${lib.makeLibraryPath [ libxshmfence ]}/libxshmfence.so.1
6053
'';
6154
};
6255

installers/overlays/required.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ self: super: {
88
dhall = dontCheck (doJailbreak (self.callPackage ./dhall.nix {}));
99
universum = dontCheck (self.callPackage ./universum.nix {});
1010
nsis = self.callPackage ./nsis.nix {};
11-
github = self.callHackage "github" "0.26" {};
11+
github = self.callHackage "github" "0.27" {};
1212
}

nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@
101101
"homepage": "",
102102
"owner": "input-output-hk",
103103
"repo": "nix-bundle",
104-
"rev": "acf3b142c1fa332d4f9050e7cdfb3c3f8091e78b",
105-
"sha256": "0pcc8bh1x3shr6k2h8zw05n0apm5ppx6nk07xp89ljldah4mmc6c",
104+
"rev": "a43e9280628d6e7fcc2f89257106f5262d531bc7",
105+
"sha256": "10qgincrs8fjdl16mld6lzd69syhyzwx65lcbz4widnkdvhlwh3i",
106106
"type": "tarball",
107-
"url": "https://github.com/input-output-hk/nix-bundle/archive/acf3b142c1fa332d4f9050e7cdfb3c3f8091e78b.tar.gz",
107+
"url": "https://github.com/input-output-hk/nix-bundle/archive/a43e9280628d6e7fcc2f89257106f5262d531bc7.tar.gz",
108108
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
109109
},
110110
"nixpkgs": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "daedalus",
33
"productName": "Daedalus",
4-
"version": "4.4.1",
4+
"version": "4.5.1",
55
"description": "Cryptocurrency Wallet",
66
"main": "./dist/main/index.js",
77
"scripts": {

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
, config ? {}
33
, nodeImplementation ? "cardano"
44
, localLib ? import ./lib.nix { inherit nodeImplementation; }
5-
, pkgs ? localLib.iohkNix.getPkgs { inherit system config; }
5+
, pkgs ? import (import ./nix/sources.nix).nixpkgs { inherit system config; }
66
, cluster ? "selfnode"
77
, systemStart ? null
88
, autoStartBackend ? systemStart != null

source/main/cardano/CardanoNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ export class CardanoNode {
794794
* @private
795795
*/
796796
_canBeStarted = async (): Promise<boolean> => {
797-
if (this._isConnected()) {
797+
if (this._isConnected() || this.state === CardanoNodeStates.STARTING) {
798798
return false;
799799
}
800800
try {

source/renderer/app/components/staking/delegation-setup-wizard/DelegationSetupWizardDialog.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type Props = {
4343
getStakePoolById: Function,
4444
hwDeviceStatus: HwDeviceStatus,
4545
isTrezor: boolean,
46+
onThumbPoolSelect: Function,
4647
};
4748

4849
const getOversaturationPercentage = (
@@ -108,6 +109,7 @@ export default class DelegationSetupWizardDialog extends Component<Props> {
108109
hwDeviceStatus,
109110
isTrezor,
110111
maxDelegationFunds,
112+
onThumbPoolSelect,
111113
} = this.props;
112114

113115
const selectedWalletId = get(selectedWallet, 'id', null);
@@ -156,9 +158,10 @@ export default class DelegationSetupWizardDialog extends Component<Props> {
156158
selectedPool={selectedPool}
157159
onClose={onClose}
158160
onBack={onBack}
159-
onSelectPool={onSelectPool}
160-
onContinue={onContinue}
161+
onSelectPool={onThumbPoolSelect}
162+
onContinue={onSelectPool}
161163
oversaturationPercentage={oversaturationPercentage}
164+
onThumbPoolSelect={onThumbPoolSelect}
162165
/>
163166
);
164167
break;

source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseStakePoolDialog.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type Props = {
5050
intl: intlShape.isRequired,
5151
onContinue: Function,
5252
oversaturationPercentage: number,
53+
onThumbPoolSelect: Function,
5354
};
5455

5556
type FooterProps = {
@@ -90,22 +91,25 @@ const DelegationStepsChooseStakePoolDialog = observer((props: Props) => {
9091
setSearchValue('');
9192
});
9293

93-
const handleSelect = useCallback((value: string) => {
94-
const _selectedPool = find(
95-
stakePoolsList,
96-
(stakePool) => stakePool.id === value
97-
);
98-
setSelectedPool(_selectedPool);
99-
props.onSelectPool(_selectedPool.id);
100-
});
94+
const handleSelect = useCallback(
95+
(value: string) => {
96+
const _selectedPool = find(
97+
stakePoolsList,
98+
(stakePool) => stakePool.id === value
99+
);
100+
setSelectedPool(_selectedPool);
101+
props.onThumbPoolSelect(_selectedPool.id);
102+
},
103+
[props.onThumbPoolSelect, stakePoolsList]
104+
);
101105

102106
useEffect(() => {
103107
if (preselectedPool && preselectedPool.id) handleSelect(preselectedPool.id);
104108
}, [preselectedPool]);
105109

106110
const onContinue = useCallback(() => {
107-
props.onContinue();
108-
}, [props.onContinue]);
111+
props.onContinue(selectedPool);
112+
}, [props.onContinue, selectedPool]);
109113

110114
const {
111115
name: selectedWalletName,

0 commit comments

Comments
 (0)