forked from LBRYCommunity/lbry-sdk
pylint and other fixes
This commit is contained in:
parent
14436b3955
commit
23f186e6a1
3 changed files with 2 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ idea:
|
||||||
start:
|
start:
|
||||||
dropdb lbry --if-exists
|
dropdb lbry --if-exists
|
||||||
createdb lbry
|
createdb lbry
|
||||||
lbrynet start --full-node \
|
lbrynet start node \
|
||||||
--db-url=postgresql:///lbry --workers=0 --console=advanced --no-spv-address-filters \
|
--db-url=postgresql:///lbry --workers=0 --console=advanced --no-spv-address-filters \
|
||||||
--lbrycrd-rpc-user=lbry --lbrycrd-rpc-pass=somethingelse \
|
--lbrycrd-rpc-user=lbry --lbrycrd-rpc-pass=somethingelse \
|
||||||
--lbrycrd-dir=${HOME}/.lbrycrd --data-dir=/tmp/tmp-lbrynet
|
--lbrycrd-dir=${HOME}/.lbrycrd --data-dir=/tmp/tmp-lbrynet
|
||||||
|
|
|
@ -113,7 +113,7 @@ class Database:
|
||||||
def temp_sqlite_regtest(cls, lbrycrd_dir=None):
|
def temp_sqlite_regtest(cls, lbrycrd_dir=None):
|
||||||
from lbry import Config, RegTestLedger # pylint: disable=import-outside-toplevel
|
from lbry import Config, RegTestLedger # pylint: disable=import-outside-toplevel
|
||||||
directory = tempfile.mkdtemp()
|
directory = tempfile.mkdtemp()
|
||||||
conf = Config.with_same_dir(directory)
|
conf = Config.with_same_dir(directory).set(blockchain="regtest")
|
||||||
if lbrycrd_dir is not None:
|
if lbrycrd_dir is not None:
|
||||||
conf.lbrycrd_dir = lbrycrd_dir
|
conf.lbrycrd_dir = lbrycrd_dir
|
||||||
ledger = RegTestLedger(conf)
|
ledger = RegTestLedger(conf)
|
||||||
|
|
|
@ -58,7 +58,6 @@ class Service:
|
||||||
This is the programmatic api (as compared to API)
|
This is the programmatic api (as compared to API)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name: str
|
|
||||||
sync: Sync
|
sync: Sync
|
||||||
|
|
||||||
def __init__(self, ledger: Ledger):
|
def __init__(self, ledger: Ledger):
|
||||||
|
|
Loading…
Reference in a new issue