Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use config value here instead of hardcoded time #4451

Closed
stringhandler opened this issue Aug 11, 2022 · 1 comment · Fixed by #4485
Closed

Use config value here instead of hardcoded time #4451

stringhandler opened this issue Aug 11, 2022 · 1 comment · Fixed by #4485
Assignees

Comments

@stringhandler
Copy link
Collaborator

found in v0.35.0

       match self.sync_peers(conn.clone()).await {
                        Ok(_) => continue,
                        Err(err @ NetworkDiscoveryError::PeerValidationError(_)) => {
                            warn!(target: LOG_TARGET, "{}. Banning peer.", err);
                            if let Err(err) = self
                                .context
                                .connectivity
                                .ban_peer_until(
                                    conn.peer_node_id().clone(),
                                    Duration::from_secs(60 * 60),
                                    err.to_string(),
                                )
                                .await
                            {
                                return err.into();
                            }
                        },
@stringhandler
Copy link
Collaborator Author

@delta1 ?

@jorgeantonio21 jorgeantonio21 self-assigned this Aug 11, 2022
@SWvheerden SWvheerden moved this to In Progress in Tari Esme Testnet Aug 15, 2022
@aviator-app aviator-app bot closed this as completed in 37d38d6 Aug 17, 2022
Repository owner moved this from In Progress to Done in Tari Esme Testnet Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants