From 348e6674f2823e60ecc6ba9c12e767a23252bb9c Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Thu, 9 Feb 2017 12:04:12 +0100 Subject: [PATCH] Add technical comment for TX to himself --- www/js/services/wallet-services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/js/services/wallet-services.js b/www/js/services/wallet-services.js index 7a94bcc01..d598e60f1 100644 --- a/www/js/services/wallet-services.js +++ b/www/js/services/wallet-services.js @@ -1044,6 +1044,7 @@ angular.module('cesium.wallet.services', ['ngResource', 'ngApi', 'cesium.bma.ser createAndSendTx = function(block, destPub, amount, inputs, comments) { // Make sure a TX in compact mode has no more than 100 lines (fix #118) + // (If more than 100 lines, send to TX to himself first, then its result as sources for the final TX) if (inputs.sources.length > 40) { console.debug("[Wallet] TX has to many sources. Will chain TX..."); @@ -1061,7 +1062,7 @@ angular.module('cesium.wallet.services', ['ngResource', 'ngApi', 'cesium.bma.ser }); // Send inputs first slice - return createAndSendTx(block, data.pubkey/*to himself*/, firstSlice.amount, firstSlice) // comment ot need + return createAndSendTx(block, data.pubkey/*to himself*/, firstSlice.amount, firstSlice) // comment not need .then(function(res) { _.forEach(firstSlice.sources, function(source) { source.consumed=true; -- GitLab