Skip to content

Commit

Permalink
Merge pull request #509 from jplomas/master
Browse files Browse the repository at this point in the history
Fix for Ledger Set XMSS/OTS index & version display
  • Loading branch information
jplomas authored Dec 29, 2021
2 parents 28bedc6 + bbbe28e commit 37a817d
Show file tree
Hide file tree
Showing 12 changed files with 121 additions and 4,161 deletions.
2 changes: 1 addition & 1 deletion .electrify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ app.on('ready', function() {
if (process.platform === 'darwin') {
app.setAboutPanelOptions({
applicationName: "QRL Wallet",
applicationVersion: "1.8.0",
applicationVersion: "1.8.1",
version: "Electron 16.0.1",
copyright: "Die QRL Stiftung, Zug Switzerland",
credits: "The QRL Developers"
Expand Down
115 changes: 101 additions & 14 deletions .electrify/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .electrify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "QRLWallet",
"productName": "QRLWallet",
"projectName": "qrl-wallet",
"version": "1.8.0",
"version": "1.8.1",
"main": "index.js",
"dependencies": {
"@theqrl/electrify-qrl": "^1.0.0",
"@theqrl/electrify-qrl": "^1.1.3",
"grpc": "^1.14.0",
"grpc-promise": "^1.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion .electrify/rpm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"icon": "assets/qrl.png",
"options": {
"version": "1.8.0",
"version": "1.8.1",
"icon": "assets/qrl.png",
"name": "QRLWallet",
"productName": "QRLWallet",
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ local.json
.electrify/dist
.electrify/.dist
/.yarn
yarn.lock
.electrify/yarn.lock
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ We recommend using nvm to manage NodeJS versions and using the version of NodeJS

npm install -g node-gyp

_node-gyp issues can generally be solved with updating npm (npm i -g npm) and rebuilding modules (npm rebuild)_

Linux only: libudev-dev, libusb-dev and libusb-1.0-0-dev

sudo apt-get install libudev-dev libusb-dev libusb-1.0-0-dev
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/both/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import './nodes.js'
SHOR_PER_QUANTA = 1000000000

// qrl-wallet Version
WALLET_VERSION = '1.8.0'
WALLET_VERSION = '1.8.1'

// qrl.proto sha256 sum for each release of QRL Node
QRLPROTO_SHA256 = [
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/open/open.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function getLedgerVersion(callback) {
console.log('> Got Ledger App Version from USB')
Session.set(
'ledgerDetailsAppVersion',
data.major + '.' + data.minor + '.' + data.patch
data.version
)
callback(null, data)
})
Expand Down
15 changes: 6 additions & 9 deletions imports/ui/pages/tools/xmssindex/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ const getNodeXMSSIndex = () => {

async function updateLedgerIdx(otsKey, callback) {
if (isElectrified()) {
const retry = Meteor.setInterval(() => {
Meteor.call('ledgerSetIdx', otsKey, (err, data) => {
if (data.error_message !== 'Timeout') {
console.log('> Set Ledger OTS Key via USB')
Meteor.clearInterval(retry)
callback(null, data)
}
})
}, 2000)
Meteor.call('ledgerSetIdx', otsKey, (err, data) => {
if (data.error_message !== 'Timeout') {
console.log('> Set Ledger OTS Key via USB')
callback(null, data)
}
})
} else {
const QrlLedger = await createTransport()
QrlLedger.setIdx(otsKey).then(idxResponse => {
Expand Down
Loading

0 comments on commit 37a817d

Please sign in to comment.