Updated ethstats for XinFin Network

This commit is contained in:
AnilChinchawale 2019-01-26 04:43:22 +05:30
parent c6bbf5a712
commit 9210dd4a76
3 changed files with 4 additions and 4 deletions

View file

@ -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
View file

View 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,