Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timelock Recovery Extension #9589

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Timelock Recovery Extension tests

9be9aa9
Select commit
Loading
Failed to load commit list.
Open

Timelock Recovery Extension #9589

Timelock Recovery Extension tests
9be9aa9
Select commit
Loading
Failed to load commit list.
Cirrus CI / unittests: Tox Python 3.11 failed Mar 5, 2025 in 4m 57s

Task Summary

Instruction tox failed in 04:13

Details

✅ 00:16 clone
✅ 00:02 pip
✅ 00:01 version
✅ 00:01 tag
✅ 00:18 install
✅ 00:01 libsecp_build
❌ 04:13 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 0x7c5e894edcd0>,)
kw_args = {'coins': [<electrum.transaction.PartialTxInput object at 0x7c5e697ee410>, <electrum.transaction.PartialTxInput object...put script=00145c625b4077ebe74eebee083fef1f23b6d5e55cc8 address=tb1qt339ksrha0n5a6lwpql778erkm272hxgamdc0u value=600>]}
name = 'Abstract_Wallet.make_unsigned_transaction', t0 = 1741216046.7793012

    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 -----------------------------
155.43 | I | simple_config.SimpleConfig | electrum directory /tmp/tmpl44ik0ed
155.43 | I | storage.WalletStorage | wallet path /tmp/tmpl44ik0ed/timelock_recovery_wallet
155.45 | I | wallet_db.WalletDBUpgrader | upgrading wallet format
155.45 | D | util.profiler | WalletDBUpgrader.upgrade 0.0039 sec
155.48 | D | util.profiler | WalletDB.load_transactions 0.0002 sec
155.48 | D | util.profiler | AddressSynchronizer.load_local_history 0.0007 sec
155.48 | D | util.profiler | AddressSynchronizer.check_history 0.0005 sec
155.87 | 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/tmpl44ik0ed
INFO     electrum.storage.WalletStorage:storage.py:71 wallet path /tmp/tmpl44ik0ed/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.0039 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.0007 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 227.96s (0:03:47) =============
py3: exit 1 (229.61 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.33=setup[23.72]+cmd[229.61] seconds)
  evaluation failed :( (253.40 seconds)