@@ -72,7 +72,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
72
72
$scope . $on ( "$ionicView.beforeEnter" , function ( event , data ) {
73
73
74
74
$scope . setWalletSelector = function ( network , minAmount , cb ) {
75
- console . log ( 'setWalletSelector' ) ;
76
75
// no min amount? (sendMax) => look for no empty wallets
77
76
minAmount = minAmount || 1 ;
78
77
@@ -176,15 +175,13 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
176
175
} ) ;
177
176
} ) ; //updateTx
178
177
} else {
179
- console . log ( 'else maxAmount' ) ;
180
178
$scope . tx = tx ;
181
179
ongoingProcess . set ( 'Finding NavTech Server' , true ) ;
182
180
navTechService . findNode ( amount , address , $scope . foundNode ) ;
183
181
}
184
182
} ) ;
185
183
186
184
$scope . foundNode = function ( success , data , serverInfo ) {
187
- console . log ( 'foundNode' ) ;
188
185
var tx = $scope . tx ;
189
186
ongoingProcess . set ( 'Finding NavTech Server' , false ) ;
190
187
if ( ! success ) {
@@ -257,23 +254,19 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
257
254
258
255
$scope . calculateTotal = function ( tx ) {
259
256
if ( ! $scope . wallet || ! tx || ! tx . txp || ! tx . txp [ $scope . wallet . id ] ) return false ;
260
- console . log ( tx . txp [ $scope . wallet . id ] . fee ) ;
261
257
var txTotal = tx . toAmount + tx . txp [ $scope . wallet . id ] . fee ;
262
258
var txTotalDisplay = txTotal * satToUnit + ' ' + walletConfig . settings . unitName ;
263
259
return txTotalDisplay ;
264
260
}
265
261
266
262
function getFees ( ) {
267
- console . log ( 'getFees' ) ;
268
263
var tx = $scope . tx ;
269
264
var wallet = $scope . wallet ;
270
265
feeService . getFeeRate ( tx . network , tx . feeLevel , function ( err , feeRate ) {
271
- console . log ( 'getFeeRate' , err , feeRate ) ;
272
266
if ( err ) return setSendError ( err ) ;
273
267
274
268
if ( ! usingCustomFee ) tx . feeRate = feeRate ;
275
269
tx . feeLevelName = feeService . feeOpts [ tx . feeLevel ] ;
276
- console . log ( 'wallet' , wallet ) ;
277
270
if ( ! wallet ) return setSendError ( err ) ;
278
271
getSendMaxInfo ( lodash . clone ( tx ) , wallet , function ( err , sendMaxInfo ) {
279
272
if ( err ) {
@@ -284,9 +277,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
284
277
285
278
if ( sendMaxInfo ) {
286
279
287
- console . log ( 'Send max info' , sendMaxInfo ) ;
288
- console . log ( 'tx.sendMax' , tx . sendMax ) ;
289
-
290
280
if ( tx . sendMax && sendMaxInfo . amount == 0 ) {
291
281
setNoWallet ( 'Insufficent funds' ) ;
292
282
popupService . showAlert ( gettextCatalog . getString ( 'Error' ) , gettextCatalog . getString ( 'Not enough funds for fee' ) ) ;
@@ -298,7 +288,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
298
288
updateAmount ( ) ;
299
289
showSendMaxWarning ( sendMaxInfo ) ;
300
290
}
301
- console . log ( 'tx' , tx ) ;
302
291
$scope . formattedAnonTxes = [ ] ;
303
292
$scope . navtechTxFeeSatoshi = 0 ;
304
293
getEachFee ( 0 , function ( err ) {
@@ -309,15 +298,12 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
309
298
}
310
299
$scope . navtechFee = $scope . navtechFeeTemp ;
311
300
$scope . navtechTxFee = $scope . navtechTxFeeSatoshi * satToUnit + ' ' + walletConfig . settings . unitName ;
312
- console . log ( '$scope.formattedAnonTxes' , $scope . formattedAnonTxes ) ;
313
301
} ) ;
314
302
} ) ;
315
303
} ) ;
316
304
}
317
305
318
306
function getEachFee ( i , cb ) {
319
- console . log ( 'getEachFee' , i , $scope . anonTxes [ i ] ) ;
320
- console . log ( 'tx' , $scope . tx ) ;
321
307
var tx = $scope . anonTxes [ i ] ;
322
308
var wallet = $scope . wallet ;
323
309
getTxp ( lodash . clone ( tx ) , wallet , true , function ( err , txp ) {
@@ -337,7 +323,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
337
323
refresh ( ) ;
338
324
$scope . navtechTxFeeSatoshi += tx . txp [ wallet . id ] . fee ;
339
325
$scope . formattedAnonTxes [ i ] = tx ;
340
- console . log ( 'recursive condition' , i , $scope . anonTxes . length ) ;
341
326
if ( i < $scope . anonTxes . length - 1 ) {
342
327
getEachFee ( ++ i , cb ) ;
343
328
} else {
@@ -387,7 +372,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
387
372
388
373
if ( tx . sendMaxInfo ) {
389
374
txp . inputs = tx . sendMaxInfo . inputs ;
390
- console . log ( $scope . feeNavtech ) ;
391
375
txp . fee = tx . sendMaxInfo . fee ;
392
376
} else {
393
377
if ( usingCustomFee ) {
@@ -403,7 +387,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
403
387
}
404
388
txp . excludeUnconfirmedUtxos = ! tx . spendUnconfirmed ;
405
389
txp . dryRun = dryRun ;
406
- console . log ( "Creating txp:" , txp ) ;
407
390
walletService . createTx ( wallet , txp , function ( err , ctxp ) {
408
391
if ( err ) {
409
392
setSendError ( err ) ;
@@ -424,8 +407,6 @@ angular.module('copayApp.controllers').controller('confirmPrivateController', fu
424
407
function updateAmount ( ) {
425
408
if ( ! tx . toAmount ) return ;
426
409
427
- console . log ( tx ) ;
428
-
429
410
// Amount
430
411
tx . amountStr = txFormatService . formatAmountStr ( tx . toAmount ) ;
431
412
tx . amountValueStr = tx . amountStr . split ( ' ' ) [ 0 ] ;
0 commit comments