@ -160,7 +165,8 @@ export class CLEffects implements OnDestroy {
};
}),
catchError((err: any)=>{
returnthis.handleErrorWithAlert('ERROR','Generate New Address Failed',this.CHILD_API_URL+environment.ON_CHAIN_API+'?type='+action.payload.addressId,err);
this.handleErrorWithAlert('ERROR','Generate New Address Failed',this.CHILD_API_URL+environment.ON_CHAIN_API+'?type='+action.payload.addressId,err);
returnof({type:RTLActions.VOID});
}));
})
);
@ -189,7 +195,8 @@ export class CLEffects implements OnDestroy {
@ -149,7 +152,8 @@ export class LNDEffects implements OnDestroy {
};
}),
catchError((err: any)=>{
returnthis.handleErrorWithAlert('ERROR','Unable to Detach Peer. Try again later.',this.CHILD_API_URL+environment.PEERS_API+'/'+action.payload.pubkey,err);
this.handleErrorWithAlert('ERROR','Unable to Detach Peer. Try again later.',this.CHILD_API_URL+environment.PEERS_API+'/'+action.payload.pubkey,err);
returnof({type:RTLActions.VOID});
})
);
}
@ -183,7 +187,8 @@ export class LNDEffects implements OnDestroy {
@ -263,7 +270,8 @@ export class LNDEffects implements OnDestroy {
};
}),
catchError((err: any)=>{
returnthis.handleErrorWithAlert('ERROR','Unable to Close Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_API+'/'+action.payload.channelPoint+'?force='+action.payload.forcibly,err);
this.handleErrorWithAlert('ERROR','Unable to Close Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_API+'/'+action.payload.channelPoint+'?force='+action.payload.forcibly,err);
returnof({type:RTLActions.VOID});
})
);
}
@ -287,7 +295,8 @@ export class LNDEffects implements OnDestroy {
returnthis.handleErrorWithAlert('ERROR',action.payload.showMessage+' '+'Unable to Backup Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/'+action.payload.channelPoint,err);
this.handleErrorWithAlert('ERROR',action.payload.showMessage+' '+'Unable to Backup Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/'+action.payload.channelPoint,err);
returnof({type:RTLActions.VOID});
})
);
}
@ -311,7 +320,8 @@ export class LNDEffects implements OnDestroy {
returnthis.handleErrorWithAlert('ERROR','Unable to Verify Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/verify/'+action.payload.channelPoint,err);
this.handleErrorWithAlert('ERROR','Unable to Verify Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/verify/'+action.payload.channelPoint,err);
returnof({type:RTLActions.VOID});
})
);
}
@ -336,7 +346,8 @@ export class LNDEffects implements OnDestroy {
returnthis.handleErrorWithAlert('ERROR','Unable to Restore Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/restore/'+action.payload.channelPoint,err);
this.handleErrorWithAlert('ERROR','Unable to Restore Channel. Try again later.',this.CHILD_API_URL+environment.CHANNELS_BACKUP_API+'/restore/'+action.payload.channelPoint,err);
returnof({type:RTLActions.VOID});
})
);
}
@ -357,7 +368,8 @@ export class LNDEffects implements OnDestroy {
@ -647,7 +668,8 @@ export class LNDEffects implements OnDestroy {
};
}),
catchError((err: any)=>{
returnthis.handleErrorWithAlert('ERROR','Generate New Address Failed',this.CHILD_API_URL+environment.NEW_ADDRESS_API+'?type='+action.payload.addressId,err);
this.handleErrorWithAlert('ERROR','Generate New Address Failed',this.CHILD_API_URL+environment.NEW_ADDRESS_API+'?type='+action.payload.addressId,err);
returnof({type:RTLActions.VOID});
}));
})
);
@ -681,7 +703,8 @@ export class LNDEffects implements OnDestroy {
@ -777,7 +803,8 @@ export class LNDEffects implements OnDestroy {
};
}),
catchError((err)=>{
returnthis.handleErrorWithAlert('ERROR','Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!','Update Macaroon',err);
this.handleErrorWithAlert('ERROR','Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!','Update Macaroon',err);
returnof({type:RTLActions.VOID});
})
);
}
@ -819,7 +846,8 @@ export class LNDEffects implements OnDestroy {