diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-06 03:55:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-06 03:55:03 +0800 |
commit | c64852dbccd0c8eb57cab994aefd0243c65b351b (patch) | |
tree | 84104fd5d12afbd0c3f53311d9b000d22e8935c3 /cmd/mist/assets/html | |
parent | bcacaaa4f418d51751cd841a22a8455b165f2375 (diff) | |
download | dexon-c64852dbccd0c8eb57cab994aefd0243c65b351b.tar.gz dexon-c64852dbccd0c8eb57cab994aefd0243c65b351b.tar.zst dexon-c64852dbccd0c8eb57cab994aefd0243c65b351b.zip |
pending / chain event
Diffstat (limited to 'cmd/mist/assets/html')
-rw-r--r-- | cmd/mist/assets/html/home.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/mist/assets/html/home.html b/cmd/mist/assets/html/home.html index 7116f5dde..531327c68 100644 --- a/cmd/mist/assets/html/home.html +++ b/cmd/mist/assets/html/home.html @@ -60,7 +60,7 @@ var web3 = require('web3'); var eth = web3.eth; - web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8080')); + web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8545')); document.querySelector("#number").innerHTML = eth.number; document.querySelector("#coinbase").innerHTML = eth.coinbase @@ -69,6 +69,14 @@ document.querySelector("#gas_price").innerHTML = eth.gasPrice; document.querySelector("#mining").innerHTML = eth.mining; document.querySelector("#listening").innerHTML = eth.listening; + + eth.watch('pending').changed(function() { + console.log("pending changed"); + }); + eth.watch('chain').changed(function() { + console.log("chain changed"); + }); + </script> </html> |