{"action":"created","issue":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1871","repository_url":"https://api.github.com/repos/lightningnetwork/lnd","labels_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1871/labels{/name}","comments_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1871/comments","events_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1871/events","html_url":"https://github.com/lightningnetwork/lnd/issues/1871","id":358402757,"node_id":"MDU6SXNzdWUzNTg0MDI3NTc=","number":1871,"title":"LND refused a valid revocation","user":{"login":"sstone","id":1573866,"node_id":"MDQ6VXNlcjE1NzM4NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1573866?v=4","gravatar_id":"","url":"https://api.github.com/users/sstone","html_url":"https://github.com/sstone","followers_url":"https://api.github.com/users/sstone/followers","following_url":"https://api.github.com/users/sstone/following{/other_user}","gists_url":"https://api.github.com/users/sstone/gists{/gist_id}","starred_url":"https://api.github.com/users/sstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstone/subscriptions","organizations_url":"https://api.github.com/users/sstone/orgs","repos_url":"https://api.github.com/users/sstone/repos","events_url":"https://api.github.com/users/sstone/events{/privacy}","received_events_url":"https://api.github.com/users/sstone/received_events","type":"User","site_admin":false},"labels":[{"id":312148185,"node_id":"MDU6TGFiZWwzMTIxNDgxODU=","url":"https://api.github.com/repos/lightningnetwork/lnd/labels/bug","name":"bug","color":"fc2929","default":true},{"id":465888460,"node_id":"MDU6TGFiZWw0NjU4ODg0NjA=","url":"https://api.github.com/repos/lightningnetwork/lnd/labels/commitments","name":"commitments","color":"d93f0b","default":false},{"id":1051072172,"node_id":"MDU6TGFiZWwxMDUxMDcyMTcy","url":"https://api.github.com/repos/lightningnetwork/lnd/labels/interop","name":"interop","color":"5deade","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-09T19:08:22Z","updated_at":"2018-09-16T15:50:34Z","closed_at":null,"author_association":"NONE","body":"### Background\r\n\r\nA channel between an eclair node and a lnd node got closed after LND send back a `invalid revocation` error, but the revocation that was sent seems to be valid.\r\nChannel id: 8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134\r\nNode id: 03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf (Coinpanic).\r\n\r\nI don't have yet info on the version of lnd that was running and lnd logs for when it happened.\r\n\r\nThis error is very uncommon, I don't have clear steps to reproduce.\r\n\r\nThis is the relevant logs on our side, which extra comments:\r\n\r\n```\r\n// next point is 02ac9cf3cb7375b597278dc42083db53ebd764ffe5f960d2808eed7b643cbbb37a\r\n/2018-09-05 03:10:59,919 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,a35504149d1b807acb643df963e1c7c02d5104955baa9ce3ec0973949024338f,02ac9cf3cb7375b597278dc42083db53ebd764ffe5f960d2808eed7b643cbbb37a)\r\n2018-09-05 08:50:59,758 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=UpdateFee(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,2966)\r\n// sign changes\r\n2018-09-05 08:50:59,820 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,304502210087920828651719d55d5c0bdac2ca28e96287eab8206117bb2580dd4acfe514ae02205b33efc2e54eb13c70de8ea966fc8000c3d3fa69abc5debe438afb9f5101608001,List())\r\n// changes have been accepted\r\n2018-09-05 08:50:59,833 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,7d2d02308b61d2d4814a0cdcbe8cd73f3ecb909cace695fd395a919b7c8be333,02ae5ad13e4b52ca885efab4ed7c7698847ca3828a6c52a8b449076bf0195faee1)\r\n2018-09-05 08:50:59,863 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,304402203945567ee0433cbae6848c4bf28ac2240a0a57b0fec28b283a21ecf1e00016a6022044eb8201d6e4bd88f42aa5cd05a675da334f21d91983401164e547e6624f286501,List())\r\n\r\n// next point is 024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7\r\n// in the remote view of our commit tx we should have:\r\n// - current commit point is 02ac9cf3cb7375b597278dc42083db53ebd764ffe5f960d2808eed7b643cbbb37a\r\n// - next commit point is 024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7\r\n2018-09-05 08:50:59,891 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,0d9771dee5e339fea8bf4712eaf9acb2015c1ed0c523006d52a0893e7f47ebe4,024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7)\r\n2018-09-05 10:10:59,757 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=UpdateFee(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,2672)\r\n// sign changes\r\n2018-09-05 10:10:59,807 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,304402203f195c0b3cd274e8abde9dab27021a3dbffd3cad73616e2efdda5f0df7f3f24e0220147103ba0c2142c91c404b806846b87c7f0319bb34b92f9d18e01e7d97fec07001,List())\r\n// we've sent a signature and received a revocation\r\n// point 024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7 has been accepted by remote peer\r\n2018-09-05 10:10:59,825 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,74f91ae158beb33e690fc85fad5cacf0189c7e228ceeb0305d0303fd00c85fd7,02fd7105ad23f39166998181f20152b753a88c70fedd5e8b465f828a5b8f3d55aa)\r\n\r\n\r\n2018-09-05 10:10:59,856 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,304502210091785de5bdc790fa78b16ea2e8c36523afae7da65fa2a36748c8a19c6aae06dd02203c289cc2ea1185681f39e59d50c741cdc81b13d2602dd4e19eff4e32ed0b154001,List())\r\n\r\n// send secret 4e2d8ea0b2050746db2eba0feef743f9479b184598c67ba7505a271b4805e98b which revokes 02ac9cf3cb7375b597278dc42083db53ebd764ffe5f960d2808eed7b643cbbb37a\r\n// in the remote view of our commit tx we should have:\r\n// - current commit point is 024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7\r\n// - next commit point is 03f62d4a2bf29ff01ed05201d49f70266f570eac1111a306a3a25e68069c78b339\r\n2018-09-05 10:10:59,912 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,4e2d8ea0b2050746db2eba0feef743f9479b184598c67ba7505a271b4805e98b,03f62d4a2bf29ff01ed05201d49f70266f570eac1111a306a3a25e68069c78b339)\r\n\r\n2018-09-05 12:10:59,759 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=UpdateFee(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,3075)\r\n2018-09-05 12:10:59,802 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,30440220335e01024075c5e53ff963006b147f718f83df6ef248cdecf7f83c104796ec77022030b01d540d66245b8ab38869fd4c76d7abdc5cedde673ee77becd627e906068401,List())\r\n// change has been accepted\r\n2018-09-05 12:10:59,836 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,3323c7ea8f9c48cf024b26c60c1ffc89403d4bc8a76c6db461b4a0cc53974d97,02df3ad591c087700ba634a2c47a1537eb232a96888d38996ed2ea3a5cd898d43f)\r\n\r\n2018-09-05 12:10:59,868 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN msg=CommitSig(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,3045022100dac8e6d5b8c285ab4ea6a0394c41c5576f476360a388f56c048c6621720c957802206751503a2f075b7be1e464c4a1daeca9edd68c565a5ca3c829778e3dba6a938a01,List())\r\n\r\n// send secret 795679b9c0d1b836e11ecb67ba33b3d93687b61645bbd99bd872a5c2c53055d1 which revokes 024fb5f1e3cb6439df018769976c2b6d653981327d6b901d51429d541a332070e7\r\n2018-09-05 12:11:00,135 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - OUT msg=RevokeAndAck(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,795679b9c0d1b836e11ecb67ba33b3d93687b61645bbd99bd872a5c2c53055d1,03d058ef10bcaff6237583ddd1df1a0facd3fc5d516e86874ff6fbcd2d88abe329)\r\n// revocation refused by peer ??\r\n2018-09-05 12:11:00,135 INFO  f.a.eclair.Diagnostics  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - IN \r\nmsg=Error(8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134,696e76616c6964207265766f636174696f6e)\r\n2018-09-05 12:11:00,137 ERROR f.a.e.channel.Channel  n:03a9d79bcfab7feb0f24c3cd61a57f0f00de2225b6d31bce0bc4564efa3b1b5aaf c:8d93fef631000710a1f3b9af1377afe433a7eeea031d3a5420b125f6f57f9134 - peer sent error: ascii='invalid revocation' bin=696e76616c6964207265766f636174696f6e\r\n``` \r\n"},"comment":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/comments/421786112","html_url":"https://github.com/lightningnetwork/lnd/issues/1871#issuecomment-421786112","issue_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/1871","id":421786112,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTc4NjExMg==","user":{"login":"halseth","id":3765732,"node_id":"MDQ6VXNlcjM3NjU3MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/3765732?v=4","gravatar_id":"","url":"https://api.github.com/users/halseth","html_url":"https://github.com/halseth","followers_url":"https://api.github.com/users/halseth/followers","following_url":"https://api.github.com/users/halseth/following{/other_user}","gists_url":"https://api.github.com/users/halseth/gists{/gist_id}","starred_url":"https://api.github.com/users/halseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halseth/subscriptions","organizations_url":"https://api.github.com/users/halseth/orgs","repos_url":"https://api.github.com/users/halseth/repos","events_url":"https://api.github.com/users/halseth/events{/privacy}","received_events_url":"https://api.github.com/users/halseth/received_events","type":"User","site_admin":false},"created_at":"2018-09-16T15:50:34Z","updated_at":"2018-09-16T15:50:34Z","author_association":"COLLABORATOR","body":"Yes, in many cases it would probably shut down if database writes fail. However, in this particular case no funds should be at risk since it will just refuse to update the channel state (because writing the new state to disk fails)."}}
{"actor":{"display_login":"halseth"}}