1
0

qeswaphelper: enrich user info

This commit is contained in:
ThomasV
2023-04-14 16:27:38 +02:00
parent 08c478f8d2
commit 98c4c86a00

View File

@@ -364,7 +364,12 @@ class QESwapHelper(AuthMixin, QObject, QtEventListener):
self.swapStarted.emit()
txid = fut.result()
try: # swaphelper might be destroyed at this point
self.userinfo = _('Swap successful!')
self.userinfo = ' '.join([
_('Success!'),
_('Your funding transaction has been broadcast.'),
_('The swap will be finalized once your transaction is confirmed.'),
_('You will need to be online to finalize the swap, or the transaction will be refunded to you after some delay.'),
])
self.state = QESwapHelper.State.Success
self.swapSuccess.emit()
except RuntimeError:
@@ -398,7 +403,12 @@ class QESwapHelper(AuthMixin, QObject, QtEventListener):
success = fut.result()
try: # swaphelper might be destroyed at this point
if success:
self.userinfo = _('Swap successful!')
self.userinfo = ' '.join([
_('Success!'),
_('The funding transaction has been detected.'),
_('Your claiming transaction will be broadcast when the funding transaction is confirmed.'),
_('You may broadcast it before that manually, but this is not trustless.'),
])
self.state = QESwapHelper.State.Success
self.swapSuccess.emit()
else: