download blob script update
This commit is contained in:
parent
17d9c0ab97
commit
1aa7981ab1
1 changed files with 6 additions and 2 deletions
|
@ -26,6 +26,7 @@ SUCCESS = False
|
|||
|
||||
|
||||
def main(args=None):
|
||||
conf.initialize_settings()
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--timeout', type=int, default=30)
|
||||
parser.add_argument('peer')
|
||||
|
@ -71,8 +72,8 @@ def getWallet():
|
|||
config = {'auto_connect': True}
|
||||
if conf.settings['lbryum_wallet_dir']:
|
||||
config['lbryum_path'] = conf.settings['lbryum_wallet_dir']
|
||||
db_dir = tempfile.mkdtemp()
|
||||
return Wallet.LBRYumWallet(db_dir, config)
|
||||
storage = Wallet.InMemoryStorage()
|
||||
return Wallet.LBRYumWallet(storage, config)
|
||||
|
||||
|
||||
class SingleBlobDownloader(object):
|
||||
|
@ -109,6 +110,9 @@ class DumbPaymentRateManager(object):
|
|||
def record_offer_reply(self, peer, offer):
|
||||
pass
|
||||
|
||||
def record_points_paid(self, point_ammount):
|
||||
pass
|
||||
|
||||
|
||||
class FreeDownload(BlobRequester.DownloadRequest):
|
||||
def _pay_peer(self, *args):
|
||||
|
|
Loading…
Reference in a new issue