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