Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vincenzopalazzo/5771a0ebf6f42dad40837019a2fbf282 to your computer and use it in GitHub Desktop.
Save vincenzopalazzo/5771a0ebf6f42dad40837019a2fbf282 to your computer and use it in GitHub Desktop.
lnprototest test_open_channel_from_accepter_side
tests/test_bolt2-01-open_channel.py::test_open_channel_from_accepter_side
------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------------------------------------------------------------------------------------------
INFO root:lampo.py:68 home path b'/tmp/lnpt-lampo-tzspanjc'
2023-06-14T11:44:53.585Z DEBUG bitcoincore_rpc JSON-RPC request: getchaintips []
2023-06-14T11:44:53.588Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Calling ChannelManager's timer_tick_occurred on startup
2023-06-14T11:44:53.588Z DEBUG bitcoincore_rpc JSON-RPC request: estimatesmartfee [6]
2023-06-14T11:44:53.588Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Rebroadcasting monitor's pending claims on startup
2023-06-14T11:44:53.588Z INFO lampod Preparing inbound connections
2023-06-14T11:44:53.588Z INFO lampod preparing address 0.0.0.0:48561
2023-06-14T11:45:03.587Z INFO lampod received InventoryEvent(GetNodeInfo(Sender { .. }))
INFO root:runner.py:138 run lampod with node id 03f37129559621cbb4f8f4d4be5dff76ec21c220d7d274a6407683eafb996d97ae
INFO root:event.py:59 # running {'event': 'Sequence', 'file': 'runner.py', 'pos': '96'}:
INFO root:event.py:59 # running {'event': 'Block', 'file': 'ln_spec_utils.py', 'pos': '66'}:
INFO root:event.py:59 # running {'event': 'Connect', 'file': 'ln_spec_utils.py', 'pos': '67'}:
2023-06-14T11:45:03.598Z INFO lampod --------- start server on 0.0.0.0:48561 -----------
2023-06-14T11:45:03.598Z INFO lampod preparing address 0.0.0.0:48561
INFO root:event.py:59 # running {'event': 'ExpectMsg', 'file': 'ln_spec_utils.py', 'pos': '68'}:
2023-06-14T11:45:03.602Z DEBUG lampod::utils::logger -1 DEBUG [lightning::ln::peer_handler:1346] Finished noise handshake for connection with 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
2023-06-14T11:45:03.603Z DEBUG lampod::utils::logger -1 TRACE [lightning::ln::peer_handler:1200] Enqueueing message Init { features: [161, 81, 10, 8, 128, 160, 8], remote_network_address: None } to 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
INFO root:event.py:59 # running {'event': 'Msg', 'file': 'ln_spec_utils.py', 'pos': '69'}:
INFO root:event.py:59 # running {'event': 'Msg', 'file': 'test_bolt2-01-open_channel.py', 'pos': '88'}:
INFO root:event.py:59 # running {'event': 'TryAll', 'file': 'test_bolt2-01-open_channel.py', 'pos': '111'}:
INFO root:event.py:59 # running {'event': 'Sequence', 'file': 'structure.py', 'pos': '222'}:
INFO root:event.py:59 # running {'event': 'ExpectMsg', 'file': 'test_bolt2-01-open_channel.py', 'pos': '112'}:
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 DEBUG [lightning::ln::peer_handler:1464] [161, 81, 10, 8, 128, 160, 8]
2023-06-14T11:45:03.645Z INFO lampod::utils::logger -1 INFO [lightning::ln::peer_handler:1479] Received peer Init message from 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5: DataLossProtect: required, InitialRoutingSync: not supported, UpfrontShutdownScript: not supported, GossipQueries: not supported, VariableLengthOnion: required, StaticRemoteKey: required, PaymentSecret: required, BasicMPP: not supported, Wumbo: not supported, AnchorsZeroFeeHtlcTx: not supported, ShutdownAnySegwit: not supported, OnionMessages: required, ChannelType: not supported, SCIDPrivacy: not supported, ZeroConf: not supported, unknown flags: none
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 DEBUG [lightning::ln::channelmanager:6731] Generating channel_reestablish events for 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning::ln::peer_handler:1526] Received message OpenChannel(OpenChannel { chain_hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206, temporary_channel_id: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], funding_satoshis: 999800, push_msat: 0, dust_limit_satoshis: 546, max_htlc_value_in_flight_msat: 4294967295, channel_reserve_satoshis: 9998, htlc_minimum_msat: 0, feerate_per_kw: 253, to_self_delay: 5, max_accepted_htlcs: 483, funding_pubkey: PublicKey(653e1407d4dbd0751da60499b8fccfdace78f3e254e0b6472da2b54fd79901d3b96a10241fffb3059681ed64c30c761f658083e9c9ded6b3c3d5e30a9d8d0395), revocation_basepoint: PublicKey(a5d60b0d7fe55af94611ec0b0b3013ce841054fed2e377c027e69dfda6ff971696231bd0639deeade78a499e0015cfa2337455e4061556275d6f8086f198c3b9), payment_point: PublicKey(11fc4705dab4e832608b356cb911d631a34b348c460de8d001268f025a8ae61b790ef3d1f52218ffc66b14759c3276c0790740f96562cab30873de1a5147bcbe), delayed_payment_basepoint: PublicKey(f998010fa29d890cd9858f38e3ef5f5d7ae6e5e363c5560b2faf8a33fa2c39e0aca37d0ef5e3d6df1ea58abdf4105bbbf981465e7a347aeead932c2a6458d476), htlc_basepoint: PublicKey(79747af25e3482f91df6b7ff6083eb9d0dcb34e8070f6d988b71819901db5b60498c6b05e9e1013bb44db14fe8fa6bc223fe96ec938da78106d2f8e42d2d9702), first_per_commitment_point: PublicKey(f8e624b29ebeb01a8685fee0759d7d55c064acff80548317a5c38e22a30378033ec4ea3ea94c1017ab6eb5f38de1a23b116a9cef2df414ab9fa9da19dfb4ae71), channel_flags: 1, shutdown_scriptpubkey: None, channel_type: None }) from 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
2023-06-14T11:45:03.645Z ERROR lampod::utils::logger -1 ERROR [lightning::ln::channelmanager:6506] Only static_remote_key is supported for non-negotiated channel types
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Persisting ChannelManager...
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning::ln::peer_handler:2113] Handling SendErrorMessage HandleError event in peer_handler for node 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5 with message Only static_remote_key is supported for non-negotiated channel types
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning::ln::peer_handler:1200] Enqueueing message ErrorMessage { channel_id: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], data: "Only static_remote_key is supported for non-negotiated channel types" } to 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Done persisting ChannelManager.
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Persisting ChannelManager...
2023-06-14T11:45:03.645Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Done persisting ChannelManager.
2023-06-14T11:45:03.655Z DEBUG lampod::utils::logger -1 TRACE [lightning::ln::peer_handler:2226] Handling disconnection of peer 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
2023-06-14T11:45:03.655Z DEBUG lampod::utils::logger -1 DEBUG [lightning::ln::channelmanager:6611] Marking channels with 02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5 disconnected and generating channel_updates.
2023-06-14T11:45:03.655Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Persisting ChannelManager...
ERROR root:utils.py:98 Traceback (most recent call last):
File "/home/vincent/.cache/pypoetry/virtualenvs/lampo-lnprototest-7BzXamK1-py3.11/lib/python3.11/site-packages/lnprototest/utils/utils.py", line 95, in run_runner
runner.run(test)
File "/home/vincent/.cache/pypoetry/virtualenvs/lampo-lnprototest-7BzXamK1-py3.11/lib/python3.11/site-packages/lnprototest/runner.py", line 99, in run
all_done = sequence.action(self)
^^^^^^^^^^^^^^^^^^^^^
File "/home/vincent/.cache/pypoetry/virtualenvs/lampo-lnprototest-7BzXamK1-py3.11/lib/python3.11/site-packages/lnprototest/structure.py", line 55, in action
all_done &= e.action(runner)
^^^^^^^^^^^^^^^^
File "/home/vincent/.cache/pypoetry/virtualenvs/lampo-lnprototest-7BzXamK1-py3.11/lib/python3.11/site-packages/lnprototest/event.py", line 370, in action
raise EventError(self, "{}: message was {}".format(err, msg.to_str()))
lnprototest.errors.EventError: `Expected msgtype-accept_channel, got msgtype-error: message was error channel_id=0000000000000000000000000000000000000000000000000000000000000000 data=4f6e6c79207374617469635f72656d6f74655f6b657920697320737570706f7274656420666f72206e6f6e2d6e65676f746961746564206368616e6e656c207479706573` on event [{"event": "ExpectMsg", "file": "test_bolt2-01-open_channel.py", "pos": "112"},]
2023-06-14T11:45:03.655Z DEBUG lampod::utils::logger -1 TRACE [lightning_background_processor:779] Done persisting ChannelManager.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment