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.13 failed Mar 5, 2025 in 4m 47s

Task Summary

Instruction tox failed in 04:04

Details

✅ 00:16 clone
✅ 00:02 pip
✅ 00:01 version
✅ 00:01 tag
✅ 00:18 install
✅ 00:01 libsecp_build
❌ 04:04 tox

    
        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 0x79484717fc50>,)
kw_args = {'coins': [<electrum.transaction.PartialTxInput object at 0x794847045e50>, <electrum.transaction.PartialTxInput object...put script=00145c625b4077ebe74eebee083fef1f23b6d5e55cc8 address=tb1qt339ksrha0n5a6lwpql778erkm272hxgamdc0u value=600>]}
name = 'Abstract_Wallet.make_unsigned_transaction', t0 = 1741216046.464077

    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 -----------------------------
149.17 | I | simple_config.SimpleConfig | electrum directory /tmp/tmpxy6c895_
149.17 | I | storage.WalletStorage | wallet path /tmp/tmpxy6c895_/timelock_recovery_wallet
149.17 | I | wallet_db.WalletDBUpgrader | upgrading wallet format
149.17 | D | util.profiler | WalletDBUpgrader.upgrade 0.0033 sec
149.19 | D | util.profiler | WalletDB.load_transactions 0.0002 sec
149.19 | D | util.profiler | AddressSynchronizer.load_local_history 0.0005 sec
149.19 | D | util.profiler | AddressSynchronizer.check_history 0.0006 sec
149.58 | 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/tmpxy6c895_
INFO     electrum.storage.WalletStorage:storage.py:71 wallet path /tmp/tmpxy6c895_/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.0033 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.0006 sec
INFO     electrum.lnworker.LNWallet.[timelock_recovery_wallet]:lnworker.py:2429 set_invoice_status 720848b95f41736e6bdc838f4587e6205c417702353f3fd7d9b6b1ceb632e65b: 4
=============================== warnings summary ===============================
.tox/py3/lib/python3.13/site-packages/google/protobuf/internal/well_known_types.py:91
  /tmp/cirrus-ci-build/.tox/py3/lib/python3.13/site-packages/google/protobuf/internal/well_known_types.py:91: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== 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, 1 warning in 211.29s (0:03:31) ========
py3: exit 1 (212.90 seconds) /tmp/cirrus-ci-build> coverage run --source=electrum '--omit=electrum/gui/*,electrum/plugins/*,electrum/scripts/*' -m pytest tests -v pid=774
  py3: FAIL code 1 (243.64=setup[30.74]+cmd[212.90] seconds)
  evaluation failed :( (243.73 seconds)