mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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 minPrice = big.NewInt(common.MinGasPrice)
|
||||
|
||||
type Config struct {
|
||||
Blocks int
|
||||
|
|
@ -141,9 +142,8 @@ func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) {
|
|||
}
|
||||
|
||||
// Check gas price min.
|
||||
minGasPrice := big.NewInt(common.MinGasPrice)
|
||||
if price.Cmp(minGasPrice) < 0 {
|
||||
price = new(big.Int).Set(minGasPrice)
|
||||
if price.Cmp(minPrice) < 0 {
|
||||
price = new(big.Int).Set(minPrice)
|
||||
}
|
||||
|
||||
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,
|
||||
Mining: mining,
|
||||
Hashrate: hashrate,
|
||||
Peers: s.eth.GetPeer(),
|
||||
Peers: s.server.PeerCount(),
|
||||
GasPrice: gasprice,
|
||||
Syncing: syncing,
|
||||
Uptime: 100,
|
||||
|
|
|
|||
Loading…
Reference in a new issue