mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +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
|
// 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 {
|
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 {
|
if chainConfig.XDPoS != nil {
|
||||||
return XDPoS.New(chainConfig.XDPoS, db)
|
return XDPoS.New(chainConfig.XDPoS, db)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue