Merge branch 'master' of github.com:tomochain/tomochain

This commit is contained in:
Nguyen Sy Thanh Son 2019-01-31 04:21:01 +00:00
commit 8e97af7d95
4 changed files with 8 additions and 4 deletions

View file

@ -175,6 +175,6 @@ exec tomo $params \
--wsport 8546 \ --wsport 8546 \
--wsorigins "*" \ --wsorigins "*" \
--mine \ --mine \
--gasprice "2500" \ --gasprice "250000000" \
--targetgaslimit "84000000" \ --targetgaslimit "84000000" \
"$@" "$@"

View file

@ -723,3 +723,7 @@ func rewardInflation(chainReward *big.Int, number uint64, blockPerYear uint64) *
return chainReward return chainReward
} }
func (s *Ethereum) GetPeer() int {
return len(s.protocolManager.peers.peers)
}

View file

@ -704,7 +704,7 @@ func (s *Service) reportStats(conn *websocket.Conn) error {
Active: true, Active: true,
Mining: mining, Mining: mining,
Hashrate: hashrate, Hashrate: hashrate,
Peers: s.server.PeerCount(), Peers: s.eth.GetPeer(),
GasPrice: gasprice, GasPrice: gasprice,
Syncing: syncing, Syncing: syncing,
Uptime: 100, Uptime: 100,

View file

@ -23,7 +23,7 @@ import (
const ( const (
VersionMajor = 1 // Major version component of the current release VersionMajor = 1 // Major version component of the current release
VersionMinor = 2 // Minor version component of the current release VersionMinor = 2 // Minor version component of the current release
VersionPatch = 1 // Patch version component of the current release VersionPatch = 2 // Patch version component of the current release
VersionMeta = "stable" // Version metadata to append to the version string VersionMeta = "stable" // Version metadata to append to the version string
) )