Skip to content

Commit

Permalink
Update Utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rating89us authored Jun 19, 2021
1 parent b057428 commit a8d5bc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ function parseDateStringOrRestoreHeightAsInteger(value, device) {
} else {
restoreHeight = parseInt(value);
}
if ((device == "Ledger" && restoreHeight < 1522000) || (device == "Trezor" && restoreHeight < 1697500)) {
if (((device == "Ledger" && restoreHeight < 1522000) || (device == "Trezor" && restoreHeight < 1697500)) && Utils.netTypeToString() == "Mainnet") {
// 1522000 = 2018-03-04 (Ledger Nano S support)
var ledgerMinRestoreHeight = 1522000
// 1697500 = 2018-11-04 (Trezor support)
var trezorMinRestoreHeight = 1697500
var ledgerMinRestoreHeight = 1522000;
// 1697500 = 2018-11-04 (Trezor Model T support)
var trezorMinRestoreHeight = 1697500;
console.log("Restore height (%1) is lower than block height when %2 started supporting Monero. Changing restore height to %3.".arg(restoreHeight).arg(device == "Ledger" ? "Ledger" : "Trezor").arg(device == "Ledger" ? ledgerMinRestoreHeight : trezorMinRestoreHeight));
restoreHeight = (device == "Ledger" ? ledgerMinRestoreHeight : trezorMinRestoreHeight);
}
Expand Down

0 comments on commit a8d5bc1

Please sign in to comment.