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

Export descriptor #1551

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

import: implement import from file for psbt & descriptor

5afc71a
Select commit
Loading
Failed to load commit list.
Draft

Export descriptor #1551

import: implement import from file for psbt & descriptor
5afc71a
Select commit
Loading
Failed to load commit list.
Cirrus CI / Chain functional tests BITCOIN_BACKEND_TYPE:electrs USE_TAPROOT:1 failed Jan 30, 2025 in 5m 50s

Task Summary

Instruction test failed in 02:49

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:01 clone
✅ 00:02 cargo_registry
✅ 00:01 cargo_git
✅ 00:16 target
✅ 00:01 tests_tools
✅ 02:23 lianad_build
✅ 00:06 deps
✅ 00:00 pip
✅ 00:03 python_deps
❌ 02:49 test

        bitcoind.generate_block(12)
    
        # Lose our state
        coins_before = sorted_coins()
        outpoints_before = set(c["outpoint"] for c in coins_before)
        bitcoind.generate_block(1)
        lianad.restart_fresh(bitcoind)
        if BITCOIN_BACKEND_TYPE is BitcoinBackendType.Bitcoind:
            assert len(list_coins()) == 0
    
        # We can be stopped while we are rescanning
        lianad.rpc.startrescan(initial_tip["time"])
        lianad.stop()
        lianad.start()
        wait_for(lambda: lianad.rpc.getinfo()["rescan_progress"] is None)
        wait_synced()
        assert coins_before == sorted_coins()
    
        # Lose our state again
        bitcoind.generate_block(1)
        lianad.restart_fresh(bitcoind)
        wait_for(lambda: lianad.rpc.getinfo()["rescan_progress"] is None)
        if BITCOIN_BACKEND_TYPE is BitcoinBackendType.Bitcoind:
            assert len(list_coins()) == 0
    
        # There can be a reorg when we start rescanning
        reorg_shift(initial_tip["height"], txs)
>       lianad.rpc.startrescan(initial_tip["time"])

tests/test_chain.py:299: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_framework/utils.py:248: in wrapper
    return self.call(name, params=args or kwargs)
tests/test_framework/utils.py:267: in call
    resp = self._readobj(sock)
tests/test_framework/utils.py:225: in _readobj
    chunk = sock.recv(n_to_read)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_framework.utils.UnixSocket object at 0x7a329364fb50>, length = 2048

    def recv(self, length: int) -> bytes:
        if self.sock is None:
            raise socket.error("not connected")
    
>       return self.sock.recv(length)
E       TimeoutError: timed out

tests/test_framework/utils.py:208: TimeoutError
--------------------------- Captured stdout teardown ---------------------------
Test failed, leaving directory '/tmp/lianad-tests-d_ndtzzr/test_rescan_edge_cases_1' intact
---------------------------- Captured log teardown -----------------------------
ERROR    root:lianad.py:139 lianad : error when calling stop: 'Command '['/tmp/cirrus-ci-build/target/release/lianad', '--conf', '/tmp/lianad-tests-d_ndtzzr/test_rescan_edge_cases_1/lianad/config.toml']' timed out after 5 seconds'
=========================== short test summary info ============================
FAILED tests/test_chain.py::test_rescan_edge_cases - TimeoutError: timed out
============== 1 failed, 6 passed, 1 skipped in 165.34s (0:02:45) ==============