Skip to content

Commit 8a445ad

Browse files
authored
Merge pull request #297 from Lamden/fix-misc
Fix misc
2 parents 8f00045 + 9616452 commit 8a445ad

File tree

6 files changed

+33
-10
lines changed

6 files changed

+33
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lamden-wallet",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"description": "A secure wallet for making transactions on the Lamden blockchain.",
55
"author": "Jeff Scott <[email protected]>",
66
"license": "",

src/js/backgroundControllers/accountsController.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export const accountsController = (utils) => {
6464

6565
const createKeystore = async (info) => {
6666
let { accountStore } = await getAccountsData()
67+
let list = await decryptedKeys(accountStore)
6768
return JSON.stringify({
68-
data: utils.encryptObject(info.pwd, {'version' : info.version, keyList: await decryptedKeys(accountStore).filter(f =>f.type !== "vault" && !f.sk.includes("watchOnly"))}),
69+
data: utils.encryptObject(info.pwd, {'version' : info.version, keyList: list.filter(f =>f.type !== "vault" && !f.sk.includes("watchOnly"))}),
6970
w: info.hint === "" ? "" : utils.encryptStrHash(info.obscure, info.hint),
7071
});
7172
}

src/js/backgroundControllers/masterController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export const masterController = () => {
487487
success: false,
488488
};
489489

490-
let sk = accounts.decryptString(account.sk);
490+
let sk = accounts.decryptString(account.sk, data.password);
491491
return {
492492
success: true,
493493
data: { ...account, sk },

src/js/latest_event.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
{
2-
"title": "Change Password Hotfix",
2+
"title": "Misc Hotfixes",
33
"type": "hotfix",
4-
"version": "2.5.1",
4+
"version": "2.5.2",
5+
"date_added": 1687289535452,
56
"body": [
6-
"Hotfix for the change password bug."
7+
"Hotfix 2.5.1 for the change password bug.",
8+
"Hotfix 2.5.2 for viewing the private key of a wallet via options.",
9+
"Hotfix 2.5.2 fixes Node Dashboard bug in masternode policy UI."
710
],
811
"buttons": [
912
{
1013
"class": "primary",
1114
"link": "https://github.com/Lamden/wallet/releases/tag/v2.5.1",
12-
"name": "Release Info"
15+
"name": "Release Info v2.5.1"
16+
},
17+
{
18+
"class": "primary",
19+
"link": "https://github.com/Lamden/wallet/releases/tag/v2.5.2",
20+
"name": "Release Info v2.5.2"
1321
}
1422
],
15-
"date_added": 1686843863024,
1623
"fixes": [
17-
"The change password feature would change the loging password but fail to re-encrypt the keys in the legacy vault storage."
24+
"The change password feature would change the loging password but fail to re-encrypt the keys in the legacy vault storage.",
25+
"The view private key button in the account options didn't work and now does.",
26+
"The masternode policy was always OPEN and never closed after completed motion."
1827
]
1928
}

src/js/stores/policyStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const getCurrentMasterNodeMotion = async () => {
227227
positions: []
228228
}
229229
let stamp = utils.decodePythonTime(data.motion_opened, "time") + 86400000
230-
if (data.motion_opened && stamp > new Date().getTime()) {
230+
if (data.current_motion !== 0 && data.motion_opened && stamp > new Date().getTime()) {
231231
// starting
232232
motion.status = 1
233233
} else {

src/svelte/dashboard/DashboardMain.svelte

+13
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
8383
}
8484
85+
const refresh = () => {
86+
chrome.runtime.sendMessage({type: 'updateNodes'})
87+
getStatics()
88+
freshPolicy("all")
89+
}
90+
8591
</script>
8692
<style>
8793
.motion-header-name {
@@ -138,6 +144,13 @@
138144
{/each}
139145
</div>
140146

147+
<Button id="refresh-dashboard"
148+
margin={'0 0 .625rem 0'}
149+
classes={'button__solid button__primary'}
150+
name="Refresh"
151+
width={'200px'}
152+
click={refresh} />
153+
141154
<div class="node-list">
142155
<div class="header header-text text-body1 weight-800">
143156
<div class="motion-header-name header-text">Policy List</div>

0 commit comments

Comments
 (0)