diff options
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go index 6b9c98bf2..fbf4dd7bb 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -480,6 +480,7 @@ func (s *Ethereum) IsListening() bool { return true } // Always func (s *Ethereum) EthVersion() int { return int(s.protocolManager.SubProtocols[0].Version) } func (s *Ethereum) NetVersion() uint64 { return s.networkID } func (s *Ethereum) Downloader() *downloader.Downloader { return s.protocolManager.downloader } +func (s *Ethereum) Synced() bool { return atomic.LoadUint32(&s.protocolManager.acceptTxs) == 1 } // Protocols implements node.Service, returning all the currently configured // network protocols to start. |