added force send update when server comes back

This commit is contained in:
cubedro 2015-02-17 20:22:06 +02:00
parent 05f4bf1c9e
commit 0870b66468
2 changed files with 3 additions and 15 deletions

View File

@ -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

View File

@ -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());
}