-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug where a socket connection to "bsv.aftrek.org" is successful… (
#1132) * Fix a bug where a socket connection to "bsv.aftrek.org" is successfully established but on protocol negotiation, the result is "None" - This crashes the entire asyncio event loop with "TypeError: cannot unpack non-iterable NoneType object" - Catch the raised TypeError to avoid crashing the asyncio event loop. * Remove hardcoding of the blacklist attribute - Servers will now be blacklisted if `DisconnectSessionError` is raised with blacklist=True * Add unittest for various bad inputs to `protocol_tuple` - Added type assertions to `_negotiate_protocol` handler to ensure bad responses from a misbehaving ElectrumX server are appropriately caught.
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,5 +61,5 @@ Pipfile | |
Pipfile.lock | ||
|
||
# local data directories | ||
electrum_sv_data/regtest/* | ||
electrum_sv_data/* | ||
instance_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters