mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
wasnt he last but close
This commit is contained in:
parent
49d4cf6f1e
commit
9b6b54f07a
3 changed files with 4 additions and 4 deletions
|
|
@ -6081,7 +6081,7 @@ module.exports = IsSyncing;
|
||||||
|
|
||||||
},{"../utils/utils":20,"./formatters":29,"./method":35,"./requestmanager":43}],45:[function(require,module,exports){
|
},{"../utils/utils":20,"./formatters":29,"./method":35,"./requestmanager":43}],45:[function(require,module,exports){
|
||||||
/*
|
/*
|
||||||
This file is part of ethereum.js.
|
This file is part of expanse.js.
|
||||||
|
|
||||||
ethereum.js is free software: you can redistribute it and/or modify
|
ethereum.js is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
|
|
||||||
|
|
@ -216,8 +216,8 @@ func (self *ethApi) IsMining(req *shared.Request) (interface{}, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) {
|
func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) {
|
||||||
current := self.ethereum.ChainManager().CurrentBlock().NumberU64()
|
current := self.expanse.ChainManager().CurrentBlock().NumberU64()
|
||||||
origin, height := self.ethereum.Downloader().Boundaries()
|
origin, height := self.expanse.Downloader().Boundaries()
|
||||||
|
|
||||||
if current < height {
|
if current < height {
|
||||||
return map[string]interface{}{
|
return map[string]interface{}{
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ func runBlockTest(test *BlockTest) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cm := ethereum.ChainManager()
|
cm := expanse.ChainManager()
|
||||||
validBlocks, err := test.TryBlocksInsert(cm)
|
validBlocks, err := test.TryBlocksInsert(cm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue