|
|
|
|
@ -12,6 +12,8 @@ from electrum.logging import get_logger
|
|
|
|
|
from electrum.transaction import PartialTxOutput, PartialTransaction |
|
|
|
|
from electrum.util import NotEnoughFunds, NoDynamicFeeEstimates, profiler, get_asyncio_loop |
|
|
|
|
|
|
|
|
|
from electrum.gui import messages |
|
|
|
|
|
|
|
|
|
from .auth import AuthMixin, auth_protect |
|
|
|
|
from .qetypes import QEAmount |
|
|
|
|
from .qewallet import QEWallet |
|
|
|
|
@ -386,9 +388,7 @@ class QESwapHelper(AuthMixin, QObject, QtEventListener):
|
|
|
|
|
try: # swaphelper might be destroyed at this point |
|
|
|
|
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.'), |
|
|
|
|
messages.MSG_FORWARD_SWAP_FUNDING_MEMPOOL, |
|
|
|
|
]) |
|
|
|
|
self.state = QESwapHelper.State.Success |
|
|
|
|
except RuntimeError: |
|
|
|
|
@ -459,9 +459,7 @@ class QESwapHelper(AuthMixin, QObject, QtEventListener):
|
|
|
|
|
if txid: |
|
|
|
|
self.userinfo = ' '.join([ |
|
|
|
|
_('Success!'), |
|
|
|
|
_('The funding transaction has been detected.'), |
|
|
|
|
_('Your claiming transaction will be broadcast when the funding transaction is confirmed.'), |
|
|
|
|
_('You may choose to broadcast it earlier, although that would not be trustless.'), |
|
|
|
|
messages.MSG_REVERSE_SWAP_FUNDING_MEMPOOL, |
|
|
|
|
]) |
|
|
|
|
self.state = QESwapHelper.State.Success |
|
|
|
|
else: |
|
|
|
|
|