code: func (sm *SyncManager) current() bool {
  	if !sm.chain.IsCurrent() {
  		return false
  	}
  
  	// if blockChain thinks we are current and we have no syncPeer it
  	// is probably right.
  	if sm.syncPeer == nil {
  		return true
  	}
  
  	// No matter what chain thinks, if we are below the block we are syncing
  	// to we are not current.
  	if sm.chain.BestSnapshot().Height < sm.syncPeer.LastBlock() {
  		return false
  	}
  	return true
  }
docs: // current returns true if we believe we are synced with our peers, false if we
  // still have blocks to check