mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-26 22:36:09 +00:00
listener for blocks and 6 confirmations
This commit is contained in:
parent
c4c5a1945d
commit
5e3d2530aa
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue