mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
Merge pull request #311 from rofl0r/master
fix error to create a wallet due to missing pick_random_server decl
This commit is contained in:
commit
0dce31eedf
3 changed files with 4 additions and 5 deletions
|
@ -3,7 +3,7 @@ from util import format_satoshis, print_msg, print_json, print_error, set_verbos
|
||||||
from wallet import WalletSynchronizer, WalletStorage
|
from wallet import WalletSynchronizer, WalletStorage
|
||||||
from wallet_factory import WalletFactory as Wallet
|
from wallet_factory import WalletFactory as Wallet
|
||||||
from verifier import TxVerifier
|
from verifier import TxVerifier
|
||||||
from network import Network, DEFAULT_SERVERS, DEFAULT_PORTS
|
from network import Network, DEFAULT_SERVERS, DEFAULT_PORTS, pick_random_server
|
||||||
from interface import Interface
|
from interface import Interface
|
||||||
from simple_config import SimpleConfig
|
from simple_config import SimpleConfig
|
||||||
import bitcoin
|
import bitcoin
|
||||||
|
|
|
@ -28,10 +28,6 @@ DEFAULT_TIMEOUT = 5
|
||||||
proxy_modes = ['socks4', 'socks5', 'http']
|
proxy_modes = ['socks4', 'socks5', 'http']
|
||||||
|
|
||||||
|
|
||||||
def pick_random_server():
|
|
||||||
return random.choice( filter_protocol(DEFAULT_SERVERS,'s') )
|
|
||||||
|
|
||||||
|
|
||||||
class Interface(threading.Thread):
|
class Interface(threading.Thread):
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@ def filter_protocol(servers, p):
|
||||||
return l
|
return l
|
||||||
|
|
||||||
|
|
||||||
|
def pick_random_server():
|
||||||
|
return random.choice( filter_protocol(DEFAULT_SERVERS,'s') )
|
||||||
|
|
||||||
|
|
||||||
class Network(threading.Thread):
|
class Network(threading.Thread):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue