commit 41d9c94821b82be8f3be7111aed1720f96c59419
parent 6d54512627d008c9658329dae4189a774464405c
Author: ThomasV <thomasv@gitorious>
Date: Wed, 22 Jul 2015 16:00:08 +0200
don't add bip70 suffixes
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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)