mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 09:50:45 +00:00
Updated ethstats for XinFin Network
This commit is contained in:
parent
c6bbf5a712
commit
9210dd4a76
3 changed files with 4 additions and 4 deletions
|
|
@ -30,6 +30,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var maxPrice = big.NewInt(500 * params.Shannon)
|
var maxPrice = big.NewInt(500 * params.Shannon)
|
||||||
|
var minPrice = big.NewInt(common.MinGasPrice)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Blocks int
|
Blocks int
|
||||||
|
|
@ -141,9 +142,8 @@ func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check gas price min.
|
// Check gas price min.
|
||||||
minGasPrice := big.NewInt(common.MinGasPrice)
|
if price.Cmp(minPrice) < 0 {
|
||||||
if price.Cmp(minGasPrice) < 0 {
|
price = new(big.Int).Set(minPrice)
|
||||||
price = new(big.Int).Set(minGasPrice)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gpo.cacheLock.Lock()
|
gpo.cacheLock.Lock()
|
||||||
|
|
|
||||||
0
eth/tracers/internal/tracers/assets.go
Normal file → Executable file
0
eth/tracers/internal/tracers/assets.go
Normal file → Executable 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.eth.GetPeer(),
|
Peers: s.server.PeerCount(),
|
||||||
GasPrice: gasprice,
|
GasPrice: gasprice,
|
||||||
Syncing: syncing,
|
Syncing: syncing,
|
||||||
Uptime: 100,
|
Uptime: 100,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue