1
0

qt/kivy receive tab: show error msg when creating req with amt<dust

This commit is contained in:
SomberNight
2022-08-11 14:55:34 +00:00
parent 5f5e6b3cf3
commit bd7a6a8f77
2 changed files with 2 additions and 0 deletions

View File

@@ -508,6 +508,7 @@ class ReceiveScreen(CScreen):
if amount_sat and amount_sat < self.app.wallet.dust_threshold():
self.address = ''
if not self.app.wallet.has_lightning():
self.app.show_info(_('Amount too small to be received onchain'))
return
else:
addr = self.address or self.app.wallet.get_unused_address()

View File

@@ -325,6 +325,7 @@ class ReceiveTab(QWidget, MessageBoxMixin, Logger):
if amount_sat and amount_sat < self.wallet.dust_threshold():
address = None
if not self.wallet.has_lightning():
self.show_error(_('Amount too small to be received onchain'))
return
else:
address = self.get_bitcoin_address_for_request(amount_sat)