From 1aa7981ab1062967bf21e26c6f76264186a0e867 Mon Sep 17 00:00:00 2001 From: Job Evers-Meltzer Date: Tue, 17 Jan 2017 17:11:14 -0600 Subject: [PATCH] download blob script update --- scripts/download_blob_from_peer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/download_blob_from_peer.py b/scripts/download_blob_from_peer.py index 464a63328..fffc44c9a 100644 --- a/scripts/download_blob_from_peer.py +++ b/scripts/download_blob_from_peer.py @@ -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):