spend unconfirmed transactions on by default
This commit is contained in:
parent
c364e414d9
commit
82bd0d5818
3 changed files with 4 additions and 25 deletions
|
|
@ -5,9 +5,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
|||
var updateConfig = function() {
|
||||
var config = configService.getSync();
|
||||
|
||||
$scope.spendUnconfirmed = {
|
||||
value: config.wallet.spendUnconfirmed
|
||||
};
|
||||
$scope.recentTransactionsEnabled = {
|
||||
value: config.recentTransactions.enabled
|
||||
};
|
||||
|
|
@ -17,17 +14,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
|
|||
|
||||
};
|
||||
|
||||
$scope.spendUnconfirmedChange = function() {
|
||||
var opts = {
|
||||
wallet: {
|
||||
spendUnconfirmed: $scope.spendUnconfirmed.value
|
||||
}
|
||||
};
|
||||
configService.set(opts, function(err) {
|
||||
if (err) $log.debug(err);
|
||||
});
|
||||
};
|
||||
|
||||
$scope.nextStepsChange = function() {
|
||||
var opts = {
|
||||
hideNextSteps: {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
wallet: {
|
||||
requiredCopayers: 2,
|
||||
totalCopayers: 3,
|
||||
spendUnconfirmed: false,
|
||||
spendUnconfirmed: true,
|
||||
reconnectDelay: 5000,
|
||||
idleDurationMin: 4,
|
||||
settings: {
|
||||
|
|
@ -147,6 +147,9 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
// Always support Bitcoin Cash
|
||||
configCache.cashSupport = true;
|
||||
|
||||
// Always be able to spend unconfirmed transactions
|
||||
configCache.wallet.spendUnconfirmed = true;
|
||||
|
||||
if (!configCache.recentTransactions) {
|
||||
configCache.recentTransactions = defaultConfig.recentTransactions;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue