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

commands: indicate in listcoins response whether coin is from self #1483

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

commands: add is_from_self to listcoins response

16726f5
Select commit
Loading
Failed to load commit list.
Open

commands: indicate in listcoins response whether coin is from self #1483

commands: add is_from_self to listcoins response
16726f5
Select commit
Loading
Failed to load commit list.
Cirrus CI / Chain functional tests BITCOIN_BACKEND_TYPE:electrs USE_TAPROOT:1 failed Nov 28, 2024 in 5m 33s

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:02 clone
✅ 00:02 cargo_registry
✅ 00:01 cargo_git
✅ 00:03 target
✅ 00:01 tests_tools
✅ 02:18 lianad_build
✅ 00:06 deps
✅ 00:00 pip
✅ 00:03 python_deps
❌ 02:49 test

        assert coin_d["is_from_self"] is False
    
        bitcoind.generate_block(1)
        # Wait for confirmation to be detected.
        wait_for(lambda: get_coin(lianad, txid_d)["block_height"] is not None)
        coin_c = get_coin(lianad, txid_c)
        coin_d = get_coin(lianad, txid_d)
        assert coin_c["is_from_self"] is False
        assert coin_c["block_height"] is not None
        assert coin_d["is_from_self"] is True
        assert coin_d["block_height"] is not None
    
        # Make sure the transaction were confirmed >10 blocks ago, so bitcoind won't update the
        # mempool during the reorg to the initial height.
        bitcoind.generate_block(10)
    
        # Reorg the chain down to the initial height, excluding all transactions.
        current_height = bitcoind.rpc.getblockcount()
        bitcoind.simple_reorg(initial_height, shift=-1)
>       wait_for(lambda: lianad.rpc.getinfo()["block_height"] == current_height + 1)

tests/test_chain.py:116: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_framework/utils.py:56: in wait_for
    wait_for_while_condition_holds(success, lambda: True, timeout, debug_fn)
tests/test_framework/utils.py:75: in wait_for_while_condition_holds
    if success():
tests/test_chain.py:116: in <lambda>
    wait_for(lambda: lianad.rpc.getinfo()["block_height"] == current_height + 1)
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 0x7fb31e2c0dd0>, 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 setup -----------------------------
Running tests in /tmp/lianad-tests-mfxh4ytg
--------------------------- Captured stdout teardown ---------------------------
Test failed, leaving directory '/tmp/lianad-tests-mfxh4ytg/test_reorg_exclusion_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-mfxh4ytg/test_reorg_exclusion_1/lianad/config.toml']' timed out after 5 seconds'
=========================== short test summary info ============================
FAILED tests/test_chain.py::test_reorg_exclusion - TimeoutError: timed out
============== 1 failed, 6 passed, 1 skipped in 165.60s (0:02:45) ==============