                     UserDefaults.customNodePort = Int(portText)
                 }
                 DispatchQueue.walletQueue.async {
-                    self.walletManager.peerManager?.connect()
+                    myself.walletManager.peerManager?.connect()
                 }
-                self.button.title = S.NodeSelector.automaticButton
+                myself.button.title = S.NodeSelector.automaticButton
             }
         })
         self.okAction = okAction

    private func switchToManual() {
        let alert = UIAlertController(title: S.NodeSelector.enterTitle, message: S.NodeSelector.enterBody, preferredStyle: .alert)
        alert.addAction(UIAlertAction(title: S.Button.cancel, style: .cancel, handler: nil))
        let okAction = UIAlertAction(title: S.Button.ok, style: .default, handler: { action in
            guard let ip = alert.textFields?.first, let port = alert.textFields?.last else { return }
            if let addressText = ip.text {
                self.saveEvent("nodeSelector.switchToManual")
                var address = in_addr()
                ascii2addr(AF_INET, addressText, &address)
                UserDefaults.customNodeIP = Int(address.s_addr)

    private let walletManager: WalletManager
    private var okAction: UIAlertAction?
    private var timer: Timer?
    private let decimalSeparator = NumberFormatter().decimalSeparator ?? "."

    init(walletManager: WalletManager) {
        self.walletManager = walletManager
