Skip to content

Commit 269ee65

Browse files
Merge pull request #18 from silkyjohnson1/master
expiration changes
2 parents 53b1540 + ba27fe1 commit 269ee65

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

electrum/gui/qt/receive_tab.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,10 @@ def update_expiry_text(self):
182182

183183
def expiry_dialog(self):
184184
msg = ''.join([
185-
_('Expiration period of your request.'), ' ',
186-
_('This information is seen by the recipient if you send them a signed payment request.'),
185+
_('The generated Fact0rn address never expires and will always be part of this wallet.'), ' ',
186+
_('You can reuse a Fact0rn address any number of times but it is not good for your privacy.'),
187187
'\n\n',
188-
_('For on-chain requests, the address gets reserved until expiration. After that, it might get reused.'), ' ',
189-
_('The bitcoin address never expires and will always be part of this electrum wallet.'), ' ',
190-
_('You can reuse a bitcoin address any number of times but it is not good for your privacy.'),
191-
'\n\n',
192-
_('Lightning not supported.'),
188+
_('Lightning requests not supported.'),
193189
])
194190
expiry = self.config.WALLET_PAYREQ_EXPIRY_SECONDS
195191
v = self.window.query_choice(msg, pr_expiration_values, title=_('Expiry'), default_choice=expiry)

electrum/invoices.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,9 @@
5959
PR_UNCONFIRMED: _('Unconfirmed'),
6060
}
6161

62-
PR_DEFAULT_EXPIRATION_WHEN_CREATING = 24*60*60 # 1 day
62+
PR_DEFAULT_EXPIRATION_WHEN_CREATING = 0 # 1 day
6363
pr_expiration_values = {
6464
0: _('Never'),
65-
10*60: _('10 minutes'),
66-
60*60: _('1 hour'),
67-
24*60*60: _('1 day'),
68-
7*24*60*60: _('1 week'),
6965
}
7066
assert PR_DEFAULT_EXPIRATION_WHEN_CREATING in pr_expiration_values
7167

0 commit comments

Comments
 (0)