mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Updated files.
This commit is contained in:
parent
22732d57fb
commit
c3c32ce113
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue