|
|
|
@ -49,6 +49,7 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q
|
|
|
|
|
|
|
|
|
|
$scope.transactions = [];
|
|
|
|
|
$scope.blockchain_height = 0;
|
|
|
|
|
$scope.error = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var private_view_key = AccountService.getViewKey();
|
|
|
|
@ -122,6 +123,14 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q
|
|
|
|
|
|
|
|
|
|
var data = response.data;
|
|
|
|
|
|
|
|
|
|
if (data.status === "error")
|
|
|
|
|
{
|
|
|
|
|
$scope.error = "An error occured in fetchAddressInfo: "
|
|
|
|
|
+ data.reason;
|
|
|
|
|
$scope.transactions = [];
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var promises = [];
|
|
|
|
|
|
|
|
|
|
var view_only = AccountService.isViewOnly();
|
|
|
|
@ -181,6 +190,14 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q
|
|
|
|
|
|
|
|
|
|
var data = response.data;
|
|
|
|
|
|
|
|
|
|
if (data.status === "error")
|
|
|
|
|
{
|
|
|
|
|
$scope.error = "An error occured in fetchTransactions: "
|
|
|
|
|
+ data.reason;
|
|
|
|
|
$scope.transactions = [];
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var scanned_block_timestamp = data.scanned_block_timestamp || 0;
|
|
|
|
|
|
|
|
|
|
if (scanned_block_timestamp > 0)
|
|
|
|
|