From 5e3d2530aa047e44826d6d2ad5bdc315b737af7c Mon Sep 17 00:00:00 2001 From: Cofresi Date: Tue, 22 Nov 2016 09:25:39 -0400 Subject: [PATCH] listener for blocks and 6 confirmations --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 544bec4..e357116 100644 --- a/index.html +++ b/index.html @@ -189,6 +189,7 @@ if (found) { console.log('all good. Count up confirmations.'); confirmations = confirmations + 1; + console.log('we have ' + confirmations + ' confirmations...'); } else { console.log('txid not in new block'); @@ -205,6 +206,7 @@ else { // for the time being just count up the confirmations without confirming everytime if the transaction is still inside the previous blocks confirmations = confirmations + 1; + console.log('we have ' + confirmations + ' confirmations...'); } if (confirmations >= 6) { @@ -227,6 +229,7 @@ var blockhash = data; // for the time being just count up the confirmations without confirming everytime if the transaction is still inside the previous blocks confirmations = confirmations + 1; + console.log('we have ' + confirmations + ' confirmations...'); if (confirmations >= 6) { $('.walletCommands#walletCommandsSubmit').removeClass('hidden'); } @@ -462,7 +465,7 @@ } return true; }; - +