File tree Expand file tree Collapse file tree
src-electron/main-process/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " beldex-electron-wallet" ,
3- "version" : " 6.0.0 " ,
3+ "version" : " 6.0.1 " ,
44 "description" : " Modern GUI interface for Beldex Currency" ,
55 "productName" : " Beldex Electron Wallet" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -725,9 +725,12 @@ export class WalletRPC {
725725 return ;
726726 }
727727
728- let refresh_start_height = refresh_start_timestamp_or_height ;
728+ let refresh_start_height = Number . parseInt (
729+ refresh_start_timestamp_or_height
730+ ) ;
729731
730- if ( ! Number . isInteger ( refresh_start_height ) ) {
732+ // if the height can't be parsed just start from block 0
733+ if ( ! refresh_start_height ) {
731734 refresh_start_height = 0 ;
732735 }
733736
@@ -792,9 +795,10 @@ export class WalletRPC {
792795 return ;
793796 }
794797
795- let restore_height = refresh_start_timestamp_or_height ;
798+ let restore_height = Number . parseInt ( refresh_start_timestamp_or_height ) ;
796799
797- if ( ! Number . isInteger ( restore_height ) ) {
800+ // if the height can't be parsed just start from block 0
801+ if ( ! restore_height ) {
798802 restore_height = 0 ;
799803 }
800804 this . sendRPC ( "generate_from_keys" , {
@@ -2576,7 +2580,6 @@ export class WalletRPC {
25762580 }
25772581
25782582 deregisterImages ( password ) {
2579- console . log ( "deregister_images.....wallet-rpc" ) ;
25802583 crypto . pbkdf2 (
25812584 password ,
25822585 this . auth [ 2 ] ,
Original file line number Diff line number Diff line change @@ -479,15 +479,8 @@ export default {
479479 required,
480480 isAddress (value ) {
481481 if (value === " " ) return true ;
482- console .log (" walletKeys address:" , value);
483482 // eslint-disable-next-line
484- const addressLength = 95 ;
485- console .log (
486- " addressLength == value.length:" ,
487- addressLength,
488- value .length
489- );
490- return addressLength <= value .length ? true : false ;
483+ return 97 >= value .length && 95 <= value .length ;
491484 }
492485 },
493486 viewkey: { required, privkey },
@@ -567,7 +560,6 @@ export default {
567560 .getTime ();
568561
569562 wallet_data[" refresh_start_date" ] = dateSeconds;
570- console .log (" wallet_data:" , wallet_data);
571563 this .$gateway .send (" wallet" , " restore_wallet" , wallet_data);
572564 },
573565 restore_wallet_with_keys () {
@@ -621,7 +613,6 @@ export default {
621613 });
622614
623615 const wallet_data = _ .cloneDeep (this .walletKeys );
624- console .log (" wallet_data:" , wallet_data);
625616 // we want the date in javascript ms format
626617 const dateSeconds = date
627618 .extractDate (this .walletKeys .refresh_start_date , " YYYY/MM/DD" )
You can’t perform that action at this time.
0 commit comments