File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,8 @@ export class HomePage {
629629 } )
630630 . catch ( err => {
631631 if ( err == 'INPROGRESS' ) return ;
632+ this . logger . warn ( 'Update error:' , err ) ;
633+
632634 this . processWalletError ( wallet , err ) ;
633635 this . events . publish ( 'Local/WalletUpdate' , {
634636 walletId : opts . walletId ,
@@ -637,7 +639,7 @@ export class HomePage {
637639 } ) ;
638640
639641 if ( opts . alsoUpdateHistory ) {
640- this . fetchTxHistory ( { walletId : opts . walletId } ) ;
642+ this . fetchTxHistory ( { walletId : opts . walletId , force : opts . force } ) ;
641643 }
642644
643645 } ) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class WalletProvider {
8484 // Ratio of "many utxos" warning in total balance (fee/amount)
8585 private TOTAL_LOW_WARNING_RATIO : number = 0.3 ;
8686
87- private WALLET_STATUS_MAX_TRIES : number = 10 ;
87+ private WALLET_STATUS_MAX_TRIES : number = 5 ;
8888 private WALLET_STATUS_DELAY_BETWEEN_TRIES : number = 1.6 * 1000 ;
8989 private SOFT_CONFIRMATION_LIMIT : number = 12 ;
9090 private SAFE_CONFIRMATIONS : number = 6 ;
@@ -319,6 +319,8 @@ export class WalletProvider {
319319 let diff = false ;
320320 _ . each ( s1 , ( v , k ) => {
321321 if ( s2 [ k ] == v ) diff = true ;
322+ else
323+ this . logger . debug ( `Status condition not meet: ${ k } is ${ s2 [ k ] } not ${ v } ` ) ;
322324 } ) ;
323325
324326 return diff ;
@@ -1022,6 +1024,7 @@ export class WalletProvider {
10221024 if ( ! wallet . isComplete ( ) ) return resolve ( ) ;
10231025
10241026 if ( this . isHistoryCached ( wallet ) && ! opts . force ) {
1027+ this . logger . debug ( 'Returning cached history for ' + wallet . id ) ;
10251028 return resolve ( wallet . completeHistory ) ;
10261029 }
10271030
You can’t perform that action at this time.
0 commit comments