lnprototestの備忘録

以下のlnprototestにてテストを走らせたところエラーが起きたのでその備忘録

https://github.com/rustyrussell/lnprototest

実行環境

  • ubuntu 20.04
  • lnprototest: master
  • core-lightning: master
  • bitcoin core:  v25.0

テスト実行すると以下のエラーとなる。rpc周りのエラーっぽかったので、bitcoin.confなどの設定をしてみたが解決には至らず。

lnprototest/runner.py:100: in run
    all_done = sequence.action(self)
lnprototest/structure.py:55: in action
    all_done &= e.action(runner)
lnprototest/event.py:409: in action
    runner.add_blocks(
lnprototest/clightning/clightning.py:231: in add_blocks
    self.bitcoind.rpc.generatetoaddress(n, self.bitcoind.rpc.getnewaddress())
lnprototest/backend/bitcoind.py:42: in f
    res = self.__proxy._call(name, *args)
../.cache/pypoetry/virtualenvs/lnprototest-PV4H-O_3-py3.10/lib/python3.10/site-packages/bitcoin/rpc.py:246: in _call
    response = self._get_response()
../.cache/pypoetry/virtualenvs/lnprototest-PV4H-O_3-py3.10/lib/python3.10/site-packages/bitcoin/rpc.py:276: in _get_response
    http_response = self.__conn.getresponse()
/usr/lib/python3.10/http/client.py:1375: in getresponse
    response.begin()
/usr/lib/python3.10/http/client.py:318: in begin
    version, status, reason = self._read_status()
/usr/lib/python3.10/http/client.py:279: in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <socket.SocketIO object at 0x7ff14c4a1c90>, b = <memory at 0x7ff14c55cb80>

    def readinto(self, b):
        """Read up to len(b) bytes into the writable buffer *b* and return
        the number of bytes read.  If the socket is non-blocking and no bytes
        are available, None is returned.

        If *b* is non-empty, a 0 return value indicates that the connection
        was shutdown at the other end.
        """
        self._checkClosed()
        self._checkReadable()
        if self._timeout_occurred:
            raise OSError("cannot read from timed out object")
        while True:
            try:
>               return self._sock.recv_into(b)
E               TimeoutError: timed out

/usr/lib/python3.10/socket.py:705: TimeoutError

結局、ビットコインコアのバージョンをv22へ下げてみたらテストが通った。この検証にまる3日ほどかかってしまった泣。実行結果は以下参照。

https://gist.github.com/yuyaogawa/f5836b7dbd469b0958ef345a16d3b6ef

Remaining : 0 characters / 0 images
100

Sign up / Continue after login

Related stories

Writer

ちょビットコイナー nostr id: npub1l83ycz54gng3nd8suvww43fardjsca37x7z5rcwlmeqzudg027fqe9hwaa

Share

Popular stories

LNノードの運用益はどれぐらい?パート1

1819

【Muun】ちょっと変わったライトニング搭載ノンカストディアルウォレット

1703

LNノードの運用益はどれぐらい?パート3

1092