{"action":"created","issue":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/599","repository_url":"https://api.github.com/repos/lightningnetwork/lnd","labels_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/599/comments","events_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/599/events","html_url":"https://github.com/lightningnetwork/lnd/issues/599","id":288296393,"number":599,"title":"HSWC: revocation window exhausted, unable to send 2","user":{"login":"tyzbit","id":3319104,"avatar_url":"https://avatars1.githubusercontent.com/u/3319104?v=4","gravatar_id":"","url":"https://api.github.com/users/tyzbit","html_url":"https://github.com/tyzbit","followers_url":"https://api.github.com/users/tyzbit/followers","following_url":"https://api.github.com/users/tyzbit/following{/other_user}","gists_url":"https://api.github.com/users/tyzbit/gists{/gist_id}","starred_url":"https://api.github.com/users/tyzbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyzbit/subscriptions","organizations_url":"https://api.github.com/users/tyzbit/orgs","repos_url":"https://api.github.com/users/tyzbit/repos","events_url":"https://api.github.com/users/tyzbit/events{/privacy}","received_events_url":"https://api.github.com/users/tyzbit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-01-13T02:42:05Z","updated_at":"2018-04-07T18:44:31Z","closed_at":"2018-01-19T01:19:01Z","author_association":"NONE","body":"Attempting to make a payment after closing a channel, I get messages like this:\r\n\r\n    2018-01-12 21:24:37.375 [TRC] HSWC: revocation window exhausted, unable to send 2\r\n    2018-01-12 21:24:37.425 [TRC] HSWC: revocation window exhausted, unable to send 2\r\n    2018-01-12 21:24:37.474 [TRC] HSWC: revocation window exhausted, unable to send 2\r\n\r\nover and over again.  Attempting a new payment increments this number.\r\n\r\nSteps to reproduce on my node:\r\n1. Start `lnd`\r\n2. Open or close a channel\r\n3. Wait for confirmation\r\n4. Attempt to pay an invoice via `lncli`\r\n5. `lncli` hangs, error message is repeated in the logs until a restart\r\n\r\nInformation:\r\n---------------\r\n**OS/Kernel**: Linux lightning 4.4.0-109-generic # 132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n**Go version**: go version go1.9.2 linux/amd64\r\n**Commit**: d030773c8d2cede68bd2d265be2a5053f4b1b165\r\n\r\n**testnet**\r\n\r\nMy channels look like this:\r\n----------------------------------\r\n<details>\r\n  <summary>Click to expand</summary>\r\n  <pre>\r\n{\r\n    \"channels\": [\r\n        {\r\n            \"active\": false,\r\n            \"remote_pubkey\": \"022a5aeb762d858e2ff0349cda1f35da340ba3488ecf06956e0001523a99b398bf\",\r\n            \"channel_point\": \"95933436fb8edbd80f7cd46132336e277bbbbee7531c79c2af41bf4472a82ff0:0\",\r\n            \"chan_id\": \"1383795856696213504\",\r\n            \"capacity\": \"811542\",\r\n            \"local_balance\": \"807198\",\r\n            \"remote_balance\": \"0\",\r\n            \"commit_fee\": \"4344\",\r\n            \"commit_weight\": \"600\",\r\n            \"fee_per_kw\": \"6000\",\r\n            \"unsettled_balance\": \"0\",\r\n            \"total_satoshis_sent\": \"0\",\r\n            \"total_satoshis_received\": \"0\",\r\n            \"num_updates\": \"0\",\r\n            \"pending_htlcs\": [\r\n            ],\r\n            \"csv_delay\": 4\r\n        },\r\n        {\r\n            \"active\": false,\r\n            \"remote_pubkey\": \"023c1fc1ef2d9a555693cf0fdc39b66d934dfc07bc0b1ee050fd3f4aeb773b9438\",\r\n            \"channel_point\": \"33d13ddb0a084ea5d94f52bda6b75bedc49d21cdc084ab32601a9475186ac603:0\",\r\n            \"chan_id\": \"1383792558165852160\",\r\n            \"capacity\": \"16777216\",\r\n            \"local_balance\": \"16771659\",\r\n            \"remote_balance\": \"0\",\r\n            \"commit_fee\": \"5557\",\r\n            \"commit_weight\": \"600\",\r\n            \"fee_per_kw\": \"6000\",\r\n            \"unsettled_balance\": \"0\",\r\n            \"total_satoshis_sent\": \"0\",\r\n            \"total_satoshis_received\": \"0\",\r\n            \"num_updates\": \"1\",\r\n            \"pending_htlcs\": [\r\n                {\r\n                    \"incoming\": false,\r\n                    \"amount\": \"1212\",\r\n                    \"hash_lock\": \"rfIxcfLCxz5yju6m0IqAvbUwxGsdvgbEoJIClPwEWug=\",\r\n                    \"expiration_height\": 1258997\r\n                }\r\n            ],\r\n            \"csv_delay\": 4\r\n        },\r\n        {\r\n            \"active\": true,\r\n            \"remote_pubkey\": \"02f892835902bdf1686ba96e733aec52105e68c0a312daec7ad08adc4d3927e4e2\",\r\n            \"channel_point\": \"74ada8e122db2e450c770c074437c87dafa5625923b0f5f5d767ee06dc093980:0\",\r\n            \"chan_id\": \"1383796956209217536\",\r\n            \"capacity\": \"16777216\",\r\n            \"local_balance\": \"16772872\",\r\n            \"remote_balance\": \"0\",\r\n            \"commit_fee\": \"4344\",\r\n            \"commit_weight\": \"600\",\r\n            \"fee_per_kw\": \"6000\",\r\n            \"unsettled_balance\": \"0\",\r\n            \"total_satoshis_sent\": \"0\",\r\n            \"total_satoshis_received\": \"0\",\r\n            \"num_updates\": \"2\",\r\n            \"pending_htlcs\": [\r\n            ],\r\n            \"csv_delay\": 4\r\n        },\r\n        {\r\n            \"active\": true,\r\n            \"remote_pubkey\": \"033ea9b7681d21635ea0fd4fa21106cd8f377a055df5b5357e902de2c911b57005\",\r\n            \"channel_point\": \"eedae0fbd821ca3ca5f8b4f628484e247c462b31cd9a24a965192f0f9bfc1bd3:0\",\r\n            \"chan_id\": \"1383798055722418176\",\r\n            \"capacity\": \"16777216\",\r\n            \"local_balance\": \"16772872\",\r\n            \"remote_balance\": \"0\",\r\n            \"commit_fee\": \"4344\",\r\n            \"commit_weight\": \"600\",\r\n            \"fee_per_kw\": \"6000\",\r\n            \"unsettled_balance\": \"0\",\r\n            \"total_satoshis_sent\": \"0\",\r\n            \"total_satoshis_received\": \"0\",\r\n            \"num_updates\": \"0\",\r\n            \"pending_htlcs\": [\r\n            ],\r\n            \"csv_delay\": 4\r\n        }\r\n    ]\r\n}\r\n</pre>\r\n</details>\r\n\r\nGetinfo says this:\r\n----------------------\r\n<details>\r\n  <summary>Click to expand</summary>\r\n<pre>{\r\n    \"identity_pubkey\": \"0265194f226138becfcda393d6f4de9c6592ddb8304772fc4887c1d246cc31c669\",\r\n    \"alias\": \"\",\r\n    \"num_pending_channels\": 0,\r\n    \"num_active_channels\": 2,\r\n    \"num_peers\": 5,\r\n    \"block_height\": 1258656,\r\n    \"block_hash\": \"00000000714d2612d0a3b9687835ba7460f8995d966ce2b2424f4250c552b2a2\",\r\n    \"synced_to_chain\": true,\r\n    \"testnet\": true,\r\n    \"chains\": [\r\n        \"bitcoin\"\r\n    ],\r\n    \"uris\": [\r\n        \"0265194f226138becfcda393d6f4de9c6592ddb8304772fc4887c1d246cc31c669@173.71.149.66:9735\"\r\n    ]\r\n}</pre>\r\n</details>\r\n</summary>\r\n\r\nI am aware of the pending HTLC; that was created when I tried to pay an invoice using an encoded payment request as the input, which somehow worked.\r\n\r\nI have been in this state before and a restart lets me pay invoices again.\r\n\r\nPlease let me know if there's any other useful information I can provide."},"comment":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/comments/379490559","html_url":"https://github.com/lightningnetwork/lnd/issues/599#issuecomment-379490559","issue_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/599","id":379490559,"user":{"login":"halfik","id":240311,"avatar_url":"https://avatars2.githubusercontent.com/u/240311?v=4","gravatar_id":"","url":"https://api.github.com/users/halfik","html_url":"https://github.com/halfik","followers_url":"https://api.github.com/users/halfik/followers","following_url":"https://api.github.com/users/halfik/following{/other_user}","gists_url":"https://api.github.com/users/halfik/gists{/gist_id}","starred_url":"https://api.github.com/users/halfik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfik/subscriptions","organizations_url":"https://api.github.com/users/halfik/orgs","repos_url":"https://api.github.com/users/halfik/repos","events_url":"https://api.github.com/users/halfik/events{/privacy}","received_events_url":"https://api.github.com/users/halfik/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T18:44:30Z","updated_at":"2018-04-07T18:44:30Z","author_association":"NONE","body":"Yep i had  2 direct channels to bitrefill where one didnt have enough btc to make payment i was doing and second one had enough."}}
{"actor":{"display_login":"halfik"}}