From eff4cd8910bc5c7f9291d8c83093254fe36d447b Mon Sep 17 00:00:00 2001 From: Devon Weller Date: Thu, 12 Nov 2015 16:42:49 -0600 Subject: [PATCH] Change the dust size to standard 5430 satoshis for Counterparty transactions. Swapbots will choose UTXOs with exactly 5430 satoshis in order to construct swap transactions that have no change. This saves blockchain space and gives better confirmation times for users. If Pockets sends UTXOs with 5470 satoshis, then all of these new UTXOs will force swapbot to generate change when these are spent. --- Chrome Extension/issueticker-wt.js | 2 +- Chrome Extension/issueticker.js | 2 +- Chrome Extension/js/glidera.js | 2 +- Chrome Extension/popup.js | 6 +++--- Chrome Extension/test/asset_send.html | 2 +- Chrome Extension/ticker.js | 4 ++-- Chrome Extension/tipsplash.js | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Chrome Extension/issueticker-wt.js b/Chrome Extension/issueticker-wt.js index 20987a2..14c1959 100644 --- a/Chrome Extension/issueticker-wt.js +++ b/Chrome Extension/issueticker-wt.js @@ -223,7 +223,7 @@ $( document ).ready(function() { var quantity = amount; - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var msig_total = 0.000078; //total btc to multisig output (returned to sender) var transfee = 0.0001; //bitcoin tx fee diff --git a/Chrome Extension/issueticker.js b/Chrome Extension/issueticker.js index e427e6c..d0102db 100644 --- a/Chrome Extension/issueticker.js +++ b/Chrome Extension/issueticker.js @@ -224,7 +224,7 @@ $( document ).ready(function() { var quantity = amount; - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var msig_total = 0.000078; //total btc to multisig output (returned to sender) var transfee = 0.0001; //bitcoin tx fee diff --git a/Chrome Extension/js/glidera.js b/Chrome Extension/js/glidera.js index 1984b39..b6918ac 100644 --- a/Chrome Extension/js/glidera.js +++ b/Chrome Extension/js/glidera.js @@ -638,7 +638,7 @@ if (!glidera) { //console.log("user/create_sell_address success: " + JSON.stringify(data)); var transaction = new bitcore.Transaction().to(data['sellAddress'], bitcore.Unit.fromBTC(amountToSend).toSatoshis()).change(fromAddress); if (transaction._hasDustOutputs()) { - glidera.addMessage('alert-danger', null, "The bitcoin amount is too small, you must sell at least " + glidera.formatBTC(0.00000547)); + glidera.addMessage('alert-danger', null, "The bitcoin amount is too small, you must sell at least " + glidera.formatBTC(0.00000543)); return; } var bitpayUtxo = "https://" + (getNetwork().name === 'testnet' ? 'test-' : '') + INSIGHT_SERVER + "/api/addr/" + fromAddress + "/utxo"; diff --git a/Chrome Extension/popup.js b/Chrome Extension/popup.js index a575947..0f7b7e4 100644 --- a/Chrome Extension/popup.js +++ b/Chrome Extension/popup.js @@ -312,7 +312,7 @@ function qrdepositDropdown() { var currentaddr = $("#xcpaddress").html(); - $("#btcbalance").html("Deposit bitcoin for transaction fees
"+currentaddr+"
Cost per transaction is 0.00015470 BTC
"); + $("#btcbalance").html("Deposit bitcoin for transaction fees
"+currentaddr+"
Cost per transaction is 0.00015430 BTC
"); var qrcode = new QRCode(document.getElementById("btcqr"), { text: currentaddr, @@ -351,7 +351,7 @@ function getBTCBalance(pubkey) { //var transactions = (parseFloat(data) / 15470) ; //insight //var transactions = (parseFloat(data.data.confirmed_balance) + parseFloat(data.data.unconfirmed_balance))/ 0.0001547; //chainso - var transactions = (parseFloat(apidata.data.balance) / 0.0001547) ; //blockr + var transactions = (parseFloat(apidata.data.balance) / 0.0001543) ; //blockr if (transactions < 1) { transactions = 0; @@ -1520,7 +1520,7 @@ function sendtokenaction() { } else if (txsAvailable > 1) { - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var msig_total = 0.000078; //total btc to multisig output (returned to sender) var mnemonic = $("#newpassphrase").html(); diff --git a/Chrome Extension/test/asset_send.html b/Chrome Extension/test/asset_send.html index c61a909..7f55bab 100644 --- a/Chrome Extension/test/asset_send.html +++ b/Chrome Extension/test/asset_send.html @@ -29,7 +29,7 @@ var asset = $("#asset").val(); var asset_total = $("#asset_total").val(); - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var msig_total = 0.000078; //total btc to multisig output (returned to sender) var transfee = 0.0001; //bitcoin tx fee diff --git a/Chrome Extension/ticker.js b/Chrome Extension/ticker.js index 359e1a2..3a6fdd6 100644 --- a/Chrome Extension/ticker.js +++ b/Chrome Extension/ticker.js @@ -478,7 +478,7 @@ $( document ).ready(function() { } else { var currentaddr = $("#xcpaddress").html(); - $("#btcbalance").append("
"+currentaddr+"
Cost per transaction is 0.0001547 BTC
"); + $("#btcbalance").append("
"+currentaddr+"
Cost per transaction is 0.0001543 BTC
"); var qrcode = new QRCode(document.getElementById("btcqr"), { text: currentaddr, width: 100, @@ -1190,7 +1190,7 @@ $(document).on('click', '#toolsTab', function () { var description = "BVAMWT-"+hash; - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var msig_total = 0.000078; //total btc to multisig output (returned to sender) var transfee = 0.0001; //bitcoin tx fee diff --git a/Chrome Extension/tipsplash.js b/Chrome Extension/tipsplash.js index 49bb6b0..9a82b22 100644 --- a/Chrome Extension/tipsplash.js +++ b/Chrome Extension/tipsplash.js @@ -413,7 +413,7 @@ function getBTCBalance(pubkey, callback) { //var transactions = (parseFloat(data) / 15470) ; //insight //var transactions = (parseFloat(data.data.confirmed_balance) + parseFloat(data.data.unconfirmed_balance))/ 0.0001547; //chainso - var transactions = (parseFloat(apidata.data.balance) / 0.0001547) ; //blockr + var transactions = (parseFloat(apidata.data.balance) / 0.0001543) ; //blockr if (transactions < 1) { transactions = 0; @@ -542,7 +542,7 @@ function sendtokenaction() { } else { - var btc_total = 0.0000547; //total btc to receiving address + var btc_total = 0.0000543; //total btc to receiving address var minersfee = 0.0001; var mnemonic = $("#passphrasefromstorage").html();