Timelock Recovery Extension #9589
Open
Cirrus CI / unittests: Tox Python 3.10
failed
Mar 5, 2025 in 4m 57s
Task Summary
Instruction tox failed in 04:14
Details
✅ 00:17 clone
✅ 00:02 pip
✅ 00:01 version
✅ 00:01 tag
✅ 00:18 install
✅ 00:01 libsecp_build
❌ 04:14 tox
_____________ TestTimelockRecovery.test_make_unsigned_recovery_tx ______________
self = <tests.test_timelock_recovery.TestTimelockRecovery testMethod=test_make_unsigned_recovery_tx>
async def test_make_unsigned_recovery_tx(self):
wallet = self._create_default_wallet()
context = TimelockRecoveryContext(wallet)
context.outputs = [
PartialTxOutput(scriptpubkey=address_to_script('tb1qt339ksrha0n5a6lwpql778erkm272hxgamdc0u'), value='!'),
]
> context.alert_tx = context.make_unsigned_alert_tx(fee_est=5000)
tests/test_timelock_recovery.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
electrum/plugins/timelock_recovery/timelock_recovery.py:89: in make_unsigned_alert_tx
return self.wallet.make_unsigned_transaction(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<electrum.wallet.Standard_Wallet object at 0x7d778bd33d00>,)
kw_args = {'coins': [<electrum.transaction.PartialTxInput object at 0x7d7777507df0>, <electrum.transaction.PartialTxInput object...put script=00145c625b4077ebe74eebee083fef1f23b6d5e55cc8 address=tb1qt339ksrha0n5a6lwpql778erkm272hxgamdc0u value=600>]}
name = 'Abstract_Wallet.make_unsigned_transaction', t0 = 1741216047.761325
def do_profile(*args, **kw_args):
name = func.__qualname__
t0 = time.time()
> o = func(*args, **kw_args)
E TypeError: Abstract_Wallet.make_unsigned_transaction() got an unexpected keyword argument 'fee'
electrum/util.py:492: TypeError
----------------------------- Captured stderr call -----------------------------
153.37 | I | simple_config.SimpleConfig | electrum directory /tmp/tmpy2gn509o
153.37 | I | storage.WalletStorage | wallet path /tmp/tmpy2gn509o/timelock_recovery_wallet
153.38 | I | wallet_db.WalletDBUpgrader | upgrading wallet format
153.38 | D | util.profiler | WalletDBUpgrader.upgrade 0.0034 sec
153.40 | D | util.profiler | WalletDB.load_transactions 0.0002 sec
153.40 | D | util.profiler | AddressSynchronizer.load_local_history 0.0005 sec
153.40 | D | util.profiler | AddressSynchronizer.check_history 0.0005 sec
154.03 | I | lnworker.LNWallet.[timelock_recovery_wallet] | set_invoice_status 720848b95f41736e6bdc838f4587e6205c417702353f3fd7d9b6b1ceb632e65b: 4
------------------------------ Captured log call -------------------------------
INFO electrum.simple_config.SimpleConfig:simple_config.py:253 electrum directory /tmp/tmpy2gn509o
INFO electrum.storage.WalletStorage:storage.py:71 wallet path /tmp/tmpy2gn509o/timelock_recovery_wallet
INFO electrum.wallet_db.WalletDBUpgrader:wallet_db.py:186 upgrading wallet format
DEBUG electrum.util.profiler:util.py:495 WalletDBUpgrader.upgrade 0.0034 sec
DEBUG electrum.util.profiler:util.py:495 WalletDB.load_transactions 0.0002 sec
DEBUG electrum.util.profiler:util.py:495 AddressSynchronizer.load_local_history 0.0005 sec
DEBUG electrum.util.profiler:util.py:495 AddressSynchronizer.check_history 0.0005 sec
INFO electrum.lnworker.LNWallet.[timelock_recovery_wallet]:lnworker.py:2429 set_invoice_status 720848b95f41736e6bdc838f4587e6205c417702353f3fd7d9b6b1ceb632e65b: 4
=========================== short test summary info ============================
FAILED tests/test_timelock_recovery.py::TestTimelockRecovery::test_make_unsigned_alert_tx
FAILED tests/test_timelock_recovery.py::TestTimelockRecovery::test_make_unsigned_cancellation_tx
FAILED tests/test_timelock_recovery.py::TestTimelockRecovery::test_make_unsigned_recovery_tx
============= 3 failed, 769 passed, 5 skipped in 225.76s (0:03:45) =============
py3: exit 1 (227.85 seconds) /tmp/cirrus-ci-build> coverage run --source=electrum '--omit=electrum/gui/*,electrum/plugins/*,electrum/scripts/*' -m pytest tests -v pid=778
py3: FAIL code 1 (253.50=setup[25.65]+cmd[227.85] seconds)
evaluation failed :( (254.16 seconds)
Loading