mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
fix: peers::is_banned need check peers data from database (#2243)
This commit is contained in:
parent
4f0582a984
commit
55334caec8
1 changed files with 2 additions and 2 deletions
|
@ -625,8 +625,8 @@ impl NetAdapter for Peers {
|
|||
}
|
||||
|
||||
fn is_banned(&self, addr: SocketAddr) -> bool {
|
||||
if let Some(peer) = self.get_connected_peer(&addr) {
|
||||
peer.is_banned()
|
||||
if let Ok(peer) = self.get_peer(addr) {
|
||||
peer.flags == State::Banned
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue