Skip to content

Command splicein not working and crashes node #9093

@hMsats

Description

@hMsats

Am I doing something wrong?

Note: I suddenly remember that I've done a splice on this channel in the past via:

/home/user/lightning_test/cli/lightning-cli --lightning-dir=/media/ssd/.lightning_test dev-splice script_or_json="wallet -> 37602sat; 37602sat -> 00e8fa5f98228486a276abaa8e970d3b8433ff8afc7950f78973e5ead9078124" dryrun=true

which went well, maybe that has something to do with it.

Both nodes run v26.04.1 and share a channel:

bitcoinserver.nl 58,513,455 c<=> 41,486,545 shecret (values in msats, total 100,000 sats)

shecret is my "test CLN node" which has 137632 sats in the internal onchain wallet

Executing a splicein test:

/home/user/lightning_test/cli/lightning-cli --lightning-dir=/media/ssd/.lightning_test splicein 00e8fa5f98228486a276abaa8e970d3b8433ff8afc7950f78973e5ead9078124 50000

results in:

2026-04-26T11:10:59.363Z UNUSUAL 031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b-channeld-chan#3: STFU complete: we are quiescent
2026-04-26T11:10:59.363Z UNUSUAL 031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b-channeld-chan#3: STFU complete: setting stfu_wait_single_msg = true
2026-04-26T11:10:59.363Z INFO    031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b-chan#3: lightningd found channel_id in command and removed it
2026-04-26T11:10:59.363Z INFO    031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b-chan#3: Finished processing confirmed stfu, channel_id count: 0, results count: 1
spenderp: Bad stfu_channels.channels 0: Parsing '{channel_id?:%,available_msat?:%': json_to_msat_to_sat could not parse 41486545
2026-04-26T11:10:59.364Z INFO    plugin-spenderp: Killing plugin: exited during normal operation
2026-04-26T11:10:59.364Z **BROKEN** plugin-spenderp: Plugin marked as important, shutting down lightningd!
2026-04-26T11:10:59.365Z INFO    031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b-chan#3: Peer transient failure in CHANNELD_NORMAL: channeld: Owning subdaemon channeld died (9)
Lost connection to the RPC socket.
Lost connection to the RPC socket.

Luckily after a restart everything works fine again.

Extra info:

{
   "channels": [
      {
         "peer_id": "031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b",
         "peer_connected": true,
         "reestablished": true,
         "channel_type": {
            "bits": [
               12,
               22
            ],
            "names": [
               "static_remotekey/even",
               "anchors/even"
            ]
         },
         "updates": {
            "local": {
               "htlc_minimum_msat": 0,
               "htlc_maximum_msat": 61775000,
               "cltv_expiry_delta": 34,
               "fee_base_msat": 0,
               "fee_proportional_millionths": 0
            },
            "remote": {
               "htlc_minimum_msat": 0,
               "htlc_maximum_msat": 61775000,
               "cltv_expiry_delta": 34,
               "fee_base_msat": 0,
               "fee_proportional_millionths": 0
            }
         },
         "last_stable_connection": 1777202211,
         "state": "CHANNELD_NORMAL",
         "scratch_txid": "204725fe43b9c9b2f545d64da576c4d6af4fe4cc0eaf4b0bfb64866014847609",
         "last_tx_fee_msat": 1411000,
         "lost_state": false,
         "feerate": {
            "perkw": 1255,
            "perkb": 5020
         },
         "owner": "channeld",
         "short_channel_id": "902497x1497x0",
         "direction": 0,
         "channel_id": "00e8fa5f98228486a276abaa8e970d3b8433ff8afc7950f78973e5ead9078124",
         "funding_txid": "3eaf819499b031db7570cb903a6137b48afe396ebda3fc15aefd44dc80e8035c",
         "funding_outnum": 0,
         "close_to_addr": "bc1pgapmd4cym38g2qu2y067tkzh8pus5gy3wg9946gxwkmu6svv76gs4w45w3",
         "close_to": "51204743b6d704dc4e85038a23f5e5d85738790a2091720a5ae90675b7cd418cf691",
         "private": false,
         "opener": "local",
         "alias": {
            "local": "7565420x9032124x31832",
            "remote": "9415099x11955358x62297"
         },
         "features": [
            "option_static_remotekey",
            "option_anchors"
         ],
         "funding": {
            "local_funds_msat": 28282000,
            "remote_funds_msat": 71718000,
            "pushed_msat": 0,
            "withheld": false
         },
         "to_us_msat": 41486545,
         "min_to_us_msat": 5306543,
         "max_to_us_msat": 86071545,
         "total_msat": 100000000,
         "fee_base_msat": 0,
         "fee_proportional_millionths": 0,
         "dust_limit_msat": 546000,
         "their_max_htlc_value_in_flight_msat": 18446744073709551615,
         "our_max_htlc_value_in_flight_msat": 18446744073709551615,
         "their_reserve_msat": 1000000,
         "our_reserve_msat": 1000000,
         "spendable_msat": 36180545,
         "receivable_msat": 57513455,
         "minimum_htlc_in_msat": 0,
         "minimum_htlc_out_msat": 0,
         "maximum_htlc_out_msat": 61775000,
         "their_to_self_delay": 144,
         "our_to_self_delay": 144,
         "max_accepted_htlcs": 30,
         "state_changes": [
            {
               "timestamp": "2025-06-06T22:40:53.982Z",
               "old_state": "CHANNELD_AWAITING_LOCKIN",
               "new_state": "CHANNELD_NORMAL",
               "cause": "user",
               "message": "Lockin complete"
            },
            {
               "timestamp": "2025-06-24T06:34:00.638Z",
               "old_state": "CHANNELD_NORMAL",
               "new_state": "CHANNELD_AWAITING_SPLICE",
               "cause": "remote",
               "message": "Splice signatures sent"
            },
            {
               "timestamp": "2025-06-24T06:42:23.810Z",
               "old_state": "CHANNELD_AWAITING_SPLICE",
               "new_state": "CHANNELD_NORMAL",
               "cause": "remote",
               "message": "Lockin complete"
            }
         ],
         "status": [
            "CHANNELD_NORMAL:Reconnected, and reestablished.",
            "CHANNELD_NORMAL:Channel ready for use."
         ],
         "in_payments_offered": 1064,
         "in_offered_msat": 351786113,
         "in_payments_fulfilled": 1056,
         "in_fulfilled_msat": 273962113,
         "out_payments_offered": 1215,
         "out_offered_msat": 327575810,
         "out_payments_fulfilled": 1209,
         "out_fulfilled_msat": 294873568,
         "htlcs": []
      }
   ]
}
{
   "outputs": [
      {
         "txid": "248107d9eae57389f75079fc8aff33843b0d978eaaab76a2868422985ffae800",
         "output": 1,
         "amount_msat": 25000000,
         "scriptpubkey": "5120044503b74e9b296a0b31d1231f3b909e14d18064e2acce546c5eea9a1cc22506",
         "address": "bc1pq3zs8d6wnv5k5ze36y337wusnc2drqryu2kvu4rvtm4f58xzy5rqx32fvu",
         "status": "confirmed",
         "blockheight": 900090,
         "reserved": false
      },
      {
         "txid": "1df364da2f22366446d83ccfeb13c7d0f47d16bdd6f389f77a20ede01f8a642e",
         "output": 0,
         "amount_msat": 88074000,
         "scriptpubkey": "0014f6881ceb9911a1c3ddffc8e5aeee3f7e7fb365a8",
         "address": "bc1q76ype6uezxsu8h0lerj6am3l0elmxedgx8hmh6",
         "status": "confirmed",
         "blockheight": 900094,
         "reserved": false
      },
      {
         "txid": "972aeb19904288e6fdf7b91e7c58708f5edc647607bf367637efea04ec071810",
         "output": 0,
         "amount_msat": 24558000,
         "scriptpubkey": "51207aed25feec79de31310847c6cc1340b47a41c7ef1c1fb0ea341494f4f96ddc24",
         "address": "bc1p0tkjtlhv080rzvggglrvcy6qk3ayr3l0rs0mp635zj20f7tdmsjqaqrh0t",
         "status": "confirmed",
         "blockheight": 928040,
         "reserved": false
      }
   ],
   "channels": [
      {
         "peer_id": "031979fe6ce0e69ece6d99a4bc4a7b30ed22a8cb8703dd7dd2dfaf619e07127e0b",
         "connected": true,
         "state": "CHANNELD_NORMAL",
         "channel_id": "00e8fa5f98228486a276abaa8e970d3b8433ff8afc7950f78973e5ead9078124",
         "short_channel_id": "902497x1497x0",
         "our_amount_msat": 41486545,
         "amount_msat": 100000000,
         "funding_txid": "3eaf819499b031db7570cb903a6137b48afe396ebda3fc15aefd44dc80e8035c",
         "funding_output": 0
      }
   ]
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions