diff --git a/bin/build.sh b/bin/build.sh index b0cccb1..ccd801b 100644 --- a/bin/build.sh +++ b/bin/build.sh @@ -31,18 +31,6 @@ mkdir logs cd ethereum [ ! -d "cpp-ethereum" ] && git clone --depth=1 --branch develop https://github.com/ethereum/cpp-ethereum -# download and build ethereum's dependencies -# cd ~/opt -# if [ ! -d "cryptopp562" ]; then -# mkdir cryptopp562 -# cd cryptopp562 -# wget http://www.cryptopp.com/cryptopp562.zip -# unzip cryptopp562.zip -# CXX="g++ -fPIC" make -# make dynamic -# sudo make install -# fi - # build ethereum cd ~/opt mkdir cpp-ethereum-build diff --git a/lib/node.js b/lib/node.js index e563e31..3e731c4 100644 --- a/lib/node.js +++ b/lib/node.js @@ -77,7 +77,7 @@ function Node() if(self.changed()) { self._socket = true; - self.sendUpdate(); + self.sendUpdate(true); } console.log('The connection has been established.'); @@ -268,9 +268,9 @@ Node.prototype.prepareStats = function() }; } -Node.prototype.sendUpdate = function() +Node.prototype.sendUpdate = function(force) { - if(this.changed()) + if(this.changed() || force) this.emit('update', this.prepareStats()); }