diff --git a/lib/wallet.py b/lib/wallet.py index 8cb3a846..f20bf431 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -1228,13 +1228,13 @@ class Abstract_Wallet(object): rdir = config.get('requests_dir') if rdir: key = out.get('id', addr) - path = os.path.join(rdir, key + '.bip70') + path = os.path.join(rdir, key) if os.path.exists(path): baseurl = 'file://' + rdir rewrite = config.get('url_rewrite') if rewrite: baseurl = baseurl.replace(*rewrite) - out['request_url'] = os.path.join(baseurl, key + '.bip70') + out['request_url'] = os.path.join(baseurl, key) out['URI'] += '&r=' + out['request_url'] out['index_url'] = os.path.join(baseurl, 'index.html') + '?id=' + key return out @@ -1297,7 +1297,7 @@ class Abstract_Wallet(object): shutil.copy(src, index) key = req.get('id', addr) pr = paymentrequest.make_request(config, req) - path = os.path.join(rdir, key + '.bip70') + path = os.path.join(rdir, key) with open(path, 'w') as f: f.write(pr.SerializeToString()) # reload @@ -1313,7 +1313,7 @@ class Abstract_Wallet(object): rdir = config.get('requests_dir') if rdir: key = r.get('id', addr) - for s in ['.json', '.bip70']: + for s in ['.json', '']: n = os.path.join(rdir, key + s) if os.path.exists(n): os.unlink(n)