Updated files.

This commit is contained in:
AnilChinchawale 2019-03-12 15:57:58 +05:30
parent 22732d57fb
commit c3c32ce113
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -553,7 +553,7 @@ func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Data
// CreateConsensusEngine creates the required type of consensus engine instance for an Ethereum service
func CreateConsensusEngine(ctx *node.ServiceContext, config *ethash.Config, chainConfig *params.ChainConfig, db ethdb.Database) consensus.Engine {
// If Xinfin XDPoS is requested, set it up
// If delegated-proof-of-stake is requested, set it up
if chainConfig.XDPoS != nil {
return XDPoS.New(chainConfig.XDPoS, db)
}

View file

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