fix logs in txservice, add logs to bwc (#4164)
* fix logs in txservice, add logs to bwc * 1.12.8 + add test for android * new version 1.12.11 * revert changes in index
This commit is contained in:
parent
0ee0988dd4
commit
e7f1bbba7d
16 changed files with 70 additions and 39 deletions
|
|
@ -82,6 +82,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
};
|
||||
|
||||
var _importExtendedPrivateKey = function(xPrivKey, opts) {
|
||||
console.log('[import.js.84:xPrivKey:]',xPrivKey); //TODO
|
||||
self.loading = true;
|
||||
|
||||
$timeout(function() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||
function($scope, $log, $timeout, isMobile, gettextCatalog, lodash, profileService, storageService, go) {
|
||||
function($scope, $log, $timeout, isMobile, gettextCatalog, lodash, profileService, storageService, go, bitcore) {
|
||||
var base = 'xpub';
|
||||
var fc = profileService.focusedClient;
|
||||
var c = fc.credentials;
|
||||
|
|
@ -20,6 +20,20 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
$scope.pubKeys = lodash.pluck(c.publicKeyRing, 'xPubKey');
|
||||
$scope.addrs = null;
|
||||
|
||||
|
||||
if (isMobile.Android()) {
|
||||
$scope.androidTest = 'testing';
|
||||
|
||||
var xp = bitcore.HDPrivateKey("tprv8ZgxMBicQKsPebv8CVghFoaaZ6ejmcSmSaKo99sUnswCCPeccGbLzfoksA2wd5XdHe8UHLwM2emuBWD4cBvQ7BPTJhFu75u3HcSjRVFmYM9");
|
||||
|
||||
var pub = xp.derive("m/44'/1'/0'").hdPublicKey.toString();
|
||||
if (pub == 'tpubDCe5stHkJZhfNMpQLgqRVYjSfADoosJ7FvxukgyXf1YzrCnru2z61giPXbgJGGxnHt922CY22DDDYD6d28jnd9okctoXNW837TmbNaAEM99') {
|
||||
$scope.androidTest = 'OK, TEST PASSED';
|
||||
} else {
|
||||
$scope.androidTest = 'FAILED!! Please report to matias@bitpay.com. Result:' + pub;
|
||||
}
|
||||
}
|
||||
|
||||
fc.getMainAddresses({
|
||||
doNotVerify: true
|
||||
}, function(err, addrs) {
|
||||
|
|
|
|||
|
|
@ -439,6 +439,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
self.setOngoingProcess(gettextCatalog.getString('Rejecting payment'));
|
||||
$scope.loading = true;
|
||||
$scope.error = null;
|
||||
|
||||
// TODO: This should be in txService
|
||||
$timeout(function() {
|
||||
fc.rejectTxProposal(txp, null, function(err, txpr) {
|
||||
self.setOngoingProcess();
|
||||
|
|
@ -982,7 +984,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
self.setOngoingProcess();
|
||||
|
||||
if (err) {
|
||||
self.error = err.message ? err.message : gettext('The payment was created but could not be completed. Please try again from home screen');
|
||||
self.error = bwsError.msg(err, gettextCatalog.getString('The payment was created but could not be completed. Please try again from home screen'));
|
||||
$scope.$emit('Local/TxProposalAction');
|
||||
$timeout(function() {
|
||||
$scope.$digest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue