dont accept payment requests without uri
This commit is contained in:
parent
171363aa86
commit
22575b9760
3
electrum
3
electrum
|
@ -462,9 +462,6 @@ if __name__ == '__main__':
|
|||
# check uri
|
||||
uri = config_options.get('url')
|
||||
if uri:
|
||||
if os.path.exists(uri):
|
||||
# assume this is a payment request
|
||||
uri = "bitcoin:?r=file://"+ os.path.join(os.getcwd(), uri)
|
||||
if not re.match('^bitcoin:', uri):
|
||||
print_stderr('unknown command:', uri)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue