-
Notifications
You must be signed in to change notification settings - Fork 942
Crash on 25.02 #8181
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
Comments
Weird! You can definitely have multiple things on that hook, BTW. But it looks like askrene got upset with whatever you changed the command to? |
Yes, but:
Can't have that in my plugin.
See OP for the replace json, it shouldn't get that upset about it. I disabled my plugin and recreated what i pass to xpay in a bash script: #!/bin/bash
bolt11=$1
output=$(lightning-cli listpeerchannels)
invoice=$(lightning-cli decode $bolt11)
payment_hash=$(echo "$invoice" | jq -r '.payment_hash')
lightning-cli askrene-remove-layer $payment_hash
lightning-cli askrene-create-layer $payment_hash false
# Extract the peer_id values using jq and filter out the desired value "X"
peer_ids=$(echo "$output" | jq -r '.channels[].peer_id | select(. != "02187352cc4b1856b9604e0a79e1bc9b301be7e0c14acbbb8c29f7051d507127d7" and . != "0385262f7e9e2eeeba1e7d6182a0efec98e79d01154b76189f3e0b88bcee279dd0" and . != "029c5b14214ca7c1f5334db539dbab266088ba43a40563551efb9458756a94cd94" and . != "030a425f5c69a29db30f6740d4e7df8f5612ef9955078ef4497490015464733dc8" and . != "02c5b5972b05fba2cd2c2d9269a47bc478f73fae0f248a85cb1e5af60a07c1919d")')
peer_ids_array=$(echo "$peer_ids" | awk '{printf "\"%s\",", $0}' | sed 's/,$//')
for peer_id in $peer_ids; do
lightning-cli askrene-disable-node $payment_hash $peer_id
done
lightning-cli xpay -k maxfee=0 retry_for=180 invstring=$bolt11 layers="[\"$payment_hash\"]" This also crashes my node with the same crash stacktrace. I used this invoice (it's probably expired already):
|
Ah, is this actually fixed by #8187 ? |
Yes crash was happening 100% of the time on 25.02. So i crashed it again immediately upgraded to master and ran command again and it worked, no crash. Thank you! |
So i wrote a plugin to hook into rpc_command for pay and since only one plugin can do that i disable xpay-handle-pay and wrote it myself. I encountered a crash on my mainnet node that i tried to replicate with some tests on regtest but was unable to.
When my plugin was done with the pay->xpay conversion it returned:
These are the only logs between the replace response issued and the crash:
When testing this on regtest with the exact same arguments used and a similar network setup and exclude it works. But on mainnet i crashed my node everytime i tried it.
The text was updated successfully, but these errors were encountered: