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

WIP: backend: supporting bip 157 as a backend #973

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

fixup! wip: implement basic method with nakamoto

c2bb2b8
Select commit
Loading
Failed to load commit list.
Draft

WIP: backend: supporting bip 157 as a backend #973

fixup! wip: implement basic method with nakamoto
c2bb2b8
Select commit
Loading
Failed to load commit list.
Cirrus CI / Misc functional tests USE_MIN_BITCOIN_VERSION:TRUE failed Feb 23, 2024 in 2m 44s

Task Summary

Instruction test failed in 00:20

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:01 clone
✅ 00:01 cargo_registry
✅ 00:01 cargo_git
✅ 00:01 target
✅ 02:06 lianad_build
✅ 00:06 deps
✅ 00:00 pip
✅ 00:02 python_deps
❌ 00:20 test

lianad_multisig = <test_framework.lianad.Lianad object at 0x7affc20092d0>
bitcoind = <test_framework.bitcoind.Bitcoind object at 0x7affc2041b90>

    @pytest.mark.skipif(
        OLD_LIANAD_PATH is None, reason="Need the old lianad binary to create the datadir."
    )
    def test_migration(lianad_multisig, bitcoind):
        """Test we can start a newer lianad on a datadir created by an older lianad."""
        lianad = lianad_multisig
    
        # Set the old binary and re-create the datadir.
        lianad.cmd_line[0] = OLD_LIANAD_PATH
>       lianad.restart_fresh(bitcoind)

tests/test_misc.py:253: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_framework/lianad.py:111: in restart_fresh
    bitcoind.node_rpc.unloadwallet(wallet_path)
tests/test_framework/bitcoind.py:30: in f
    return proxy.__call__(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_framework.authproxy.AuthServiceProxy object at 0x7affc201a1d0>
args = ('/tmp/lianad-tests-4glwd8py/test_migration_1/lianad/regtest/lianad_watchonly_wallet',)
argsn = {}
postdata = '{"version": "1.1", "method": "unloadwallet", "params": ["/tmp/lianad-tests-4glwd8py/test_migration_1/lianad/regtest/lianad_watchonly_wallet"], "id": 12}'
response = {'error': {'code': -18, 'message': 'Requested wallet does not exist or is not loaded'}, 'id': 12, 'result': None}
status = 500

    def __call__(self, *args, **argsn):
        postdata = json.dumps(
            self.get_request(*args, **argsn),
            default=EncodeDecimal,
            ensure_ascii=self.ensure_ascii,
        )
        response, status = self._request(
            "POST", self.__url.path, postdata.encode("utf-8")
        )
        if response["error"] is not None:
>           raise JSONRPCException(response["error"], status)
E           test_framework.authproxy.JSONRPCException: Requested wallet does not exist or is not loaded (-18)

tests/test_framework/authproxy.py:179: JSONRPCException
------------------------------ Captured log call -------------------------------
ERROR    root:lianad.py:134 lianad : error when calling stop: '[Errno 104] Connection reset by peer'
--------------------------- Captured stdout teardown ---------------------------
Test failed, leaving directory '/tmp/lianad-tests-4glwd8py/test_migration_1' intact
---------------------------- Captured log teardown -----------------------------
ERROR    root:lianad.py:134 lianad : error when calling stop: '[Errno 2] No such file or directory'
=========================== short test summary info ============================
FAILED tests/test_misc.py::test_multisig - ConnectionResetError: [Errno 104] Connection reset by peer
FAILED tests/test_misc.py::test_multipath - ConnectionResetError: [Errno 104] Connection reset by peer
FAILED tests/test_misc.py::test_coinbase_deposit - ConnectionResetError: [Errno 104] Connection reset by peer
FAILED tests/test_misc.py::test_migration - test_framework.authproxy.JSONRPCException: Requested wallet does not exist or is not loaded (-18)
======================== 4 failed, 2 skipped in 14.55s =========================