Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Merge ce6dd37 into cc6fd89
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Sep 30, 2019
2 parents cc6fd89 + ce6dd37 commit 441fac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project are documented in this file.
[0.9.2] In progress
-------------------
- Fix shutdown operations when initializing np-api-server and setting minpeers/maxpeers, opening a wallet, or changing databases

- Minor improvement to network recovery logic when running out of good node addresses

[0.9.1] 2019-09-16
------------------
Expand Down
2 changes: 2 additions & 0 deletions neo/Network/nodemanager.py
Expand Up @@ -2,6 +2,7 @@
import socket
import traceback
import errno
import random
from contextlib import suppress
from datetime import datetime
from functools import partial
Expand Down Expand Up @@ -140,6 +141,7 @@ def check_open_spots_and_queue_nodes(self) -> None:
# we have no other option then to retry any address we know
logger.debug("Recycling old addresses")
self.known_addresses = self.bad_addresses
random.shuffle(self.known_addresses)
self.bad_addresses = []
self.MAX_NODE_POOL_ERROR_COUNT = 0

Expand Down

0 comments on commit 441fac2

Please sign in to comment.