added force send update when server comes back
This commit is contained in:
parent
05f4bf1c9e
commit
0870b66468
12
bin/build.sh
12
bin/build.sh
@ -31,18 +31,6 @@ mkdir logs
|
|||||||
cd ethereum
|
cd ethereum
|
||||||
[ ! -d "cpp-ethereum" ] && git clone --depth=1 --branch develop https://github.com/ethereum/cpp-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
|
# build ethereum
|
||||||
cd ~/opt
|
cd ~/opt
|
||||||
mkdir cpp-ethereum-build
|
mkdir cpp-ethereum-build
|
||||||
|
@ -77,7 +77,7 @@ function Node()
|
|||||||
if(self.changed())
|
if(self.changed())
|
||||||
{
|
{
|
||||||
self._socket = true;
|
self._socket = true;
|
||||||
self.sendUpdate();
|
self.sendUpdate(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('The connection has been established.');
|
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());
|
this.emit('update', this.prepareStats());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user