download blob script update

This commit is contained in:
Job Evers-Meltzer 2017-01-17 17:11:14 -06:00
parent 17d9c0ab97
commit 1aa7981ab1

View file

@ -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):