C-Lightning

如何調試閃電-cli發票

  • October 23, 2019

我試過了:

lightning-cli invoice 100 invoice20190126 payme

什麼也沒有發生。如何調試?

我已將命令複製並粘貼到我的 c-lighting 節點,它可以產生以下輸出:

lightning-cli invoice 100 invoice20190126 payme
{
 "payment_hash": "af2a2e0a6f4924f755e296c219ade5f2c65616fcec5bb8e62b253b8a71a442cb", 
 "expires_at": 1548528927, 
 "bolt11": "lnbc1n1pwye8cdpp54u4zuzn0fyj0w40zjmppnt097tr9v9hua3dm3e3ty5ac5udygt9sdqgwpshjmt9cqp2rzjqgj8m8dsm7h75az7lry7zc0txghh8tpl3pvdsuctdlvhy4r50nnkkzrgpvqqf0cqqqqqqq05qqqqraqqjq9c06msw62wushzceav74p2zzmznmtud4c3hkw6keqvquxnm6kaxry4rm7aerwppl4jn5xm7tyjxvvyyve5w06slwm7fvxfspx363j9cqcevtr7"
}

您使用的是哪個版本的 c-lightning?由於新的外掛系統,最近 JSON RPC API 也發生了變化。難道是你沒有更新lightning-cli,而只是lightningd

我使用 docker-compose 並沒有看到那裡的版本。我已經停止,移除容器並重建 clightning_bitcoin。現在它正在工作!謝謝!回應是:

lightning-cli invoice 100 invoice20190126 payme
{
 "payment_hash": "374c59643514b917da44ba737f6dcdf59cf6708903e6403f9477022185c91c18", 
 "expires_at": 1548530289, 
 "bolt11": "lnbc1n1pwyefrppp5xax9jep4zju30kjyhfeh7mwd7kw0vuyfq0nyq0u5wupzrpwfrsvqdqgwpshjmt9cqp2rzjqwac3nxyg3f5mfa4ke9577c4u8kvkx8pqtdsusqdfww0aymk823x6zyyhgqqv0gqqyqqqqqqqqqqqqgqjqt96ykzgwc5qd9034mfw4khlypu4zx9qwdzjvsg4dpfrffdg9qvgnk2uey6h7f4g9663rvqaucnfn95j2taruezgdh3w6w3v2xauzvjqp47g2m5"
}

引用自:https://bitcoin.stackexchange.com/questions/84014