mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
fixed compiler issue after merge
This commit is contained in:
parent
6541a13e54
commit
d60912fb6a
1 changed files with 8 additions and 2 deletions
|
|
@ -219,8 +219,14 @@ func (self *adminApi) Verbosity(req *shared.Request) (interface{}, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *adminApi) ChainSyncStatus(req *shared.Request) (interface{}, error) {
|
func (self *adminApi) ChainSyncStatus(req *shared.Request) (interface{}, error) {
|
||||||
pending, cached := self.ethereum.Downloader().Stats()
|
pending, cached, importing, estimate := self.ethereum.Downloader().Stats()
|
||||||
return map[string]interface{}{"blocksAvailable": pending, "blocksWaitingForImport": cached}, nil
|
|
||||||
|
return map[string]interface{}{
|
||||||
|
"blocksAvailable": pending,
|
||||||
|
"blocksWaitingForImport": cached,
|
||||||
|
"importing": importing,
|
||||||
|
"estimate": estimate.String(),
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *adminApi) SetSolc(req *shared.Request) (interface{}, error) {
|
func (self *adminApi) SetSolc(req *shared.Request) (interface{}, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue