Clean up pick_random_server() and filter_protocol() and their
call sites. Remove unused imports and redundant random pick of server
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from electrum import SimpleConfig, set_verbosity
|
||||
from electrum.network import DEFAULT_SERVERS, filter_protocol
|
||||
from electrum.network import filter_protocol
|
||||
import time, Queue
|
||||
from collections import defaultdict
|
||||
|
||||
@@ -9,7 +9,7 @@ import util, json
|
||||
set_verbosity(False)
|
||||
|
||||
config = SimpleConfig()
|
||||
servers = filter_protocol(DEFAULT_SERVERS,'t')
|
||||
servers = filter_protocol(protocol = 't')
|
||||
results = util.send_request(servers, {'method':'blockchain.headers.subscribe', 'params':[]})
|
||||
|
||||
d = defaultdict(int)
|
||||
|
||||
Reference in New Issue
Block a user