{"action":"created","issue":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2232","repository_url":"https://api.github.com/repos/lightningnetwork/lnd","labels_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2232/labels{/name}","comments_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2232/comments","events_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2232/events","html_url":"https://github.com/lightningnetwork/lnd/issues/2232","id":384870283,"node_id":"MDU6SXNzdWUzODQ4NzAyODM=","number":2232,"title":"LND sends an incoming HTLC which would exceed local `maxHtlcValueInFlightMsat`","user":{"login":"btcontract","id":9870980,"node_id":"MDQ6VXNlcjk4NzA5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/9870980?v=4","gravatar_id":"","url":"https://api.github.com/users/btcontract","html_url":"https://github.com/btcontract","followers_url":"https://api.github.com/users/btcontract/followers","following_url":"https://api.github.com/users/btcontract/following{/other_user}","gists_url":"https://api.github.com/users/btcontract/gists{/gist_id}","starred_url":"https://api.github.com/users/btcontract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcontract/subscriptions","organizations_url":"https://api.github.com/users/btcontract/orgs","repos_url":"https://api.github.com/users/btcontract/repos","events_url":"https://api.github.com/users/btcontract/events{/privacy}","received_events_url":"https://api.github.com/users/btcontract/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cfromknecht","id":2013993,"node_id":"MDQ6VXNlcjIwMTM5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/2013993?v=4","gravatar_id":"","url":"https://api.github.com/users/cfromknecht","html_url":"https://github.com/cfromknecht","followers_url":"https://api.github.com/users/cfromknecht/followers","following_url":"https://api.github.com/users/cfromknecht/following{/other_user}","gists_url":"https://api.github.com/users/cfromknecht/gists{/gist_id}","starred_url":"https://api.github.com/users/cfromknecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfromknecht/subscriptions","organizations_url":"https://api.github.com/users/cfromknecht/orgs","repos_url":"https://api.github.com/users/cfromknecht/repos","events_url":"https://api.github.com/users/cfromknecht/events{/privacy}","received_events_url":"https://api.github.com/users/cfromknecht/received_events","type":"User","site_admin":false},"assignees":[{"login":"cfromknecht","id":2013993,"node_id":"MDQ6VXNlcjIwMTM5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/2013993?v=4","gravatar_id":"","url":"https://api.github.com/users/cfromknecht","html_url":"https://github.com/cfromknecht","followers_url":"https://api.github.com/users/cfromknecht/followers","following_url":"https://api.github.com/users/cfromknecht/following{/other_user}","gists_url":"https://api.github.com/users/cfromknecht/gists{/gist_id}","starred_url":"https://api.github.com/users/cfromknecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfromknecht/subscriptions","organizations_url":"https://api.github.com/users/cfromknecht/orgs","repos_url":"https://api.github.com/users/cfromknecht/repos","events_url":"https://api.github.com/users/cfromknecht/events{/privacy}","received_events_url":"https://api.github.com/users/cfromknecht/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-11-27T16:09:49Z","updated_at":"2018-11-28T08:00:11Z","closed_at":null,"author_association":"NONE","body":"### Background\r\n\r\nBLW user attempted to send and receive a number of HTLCs through a channel with LND node and some of outgoing HTLCs got stuck, a bit later LND attempted to fulfill one of BLW's payment requests but doing so exceeded a local `maxHtlcValueInFlightMsat`.\r\n\r\nBLW `maxHtlcValueInFlightMsat` is set to `4000000 SAT`, LND `maxHtlcValueInFlightMsat` is set to `14850000 SAT`, BLW has 7 stuck outgoing HTLCs with total sum of `5783057 SAT` which already exceeds local in-flight limit, which is fine since when sending we only take into account a remote limit (right?).\r\n\r\nAs far as I understand LND should not attempt to fullfill any of BLW's requests until total in-flight sum gets below `4000000 SAT` but it does.\r\n\r\n\r\n### Your environment\r\n\r\n0.5.1-beta commit=v0.5.1-beta-rc4"},"comment":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/comments/442354030","html_url":"https://github.com/lightningnetwork/lnd/issues/2232#issuecomment-442354030","issue_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2232","id":442354030,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjM1NDAzMA==","user":{"login":"btcontract","id":9870980,"node_id":"MDQ6VXNlcjk4NzA5ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/9870980?v=4","gravatar_id":"","url":"https://api.github.com/users/btcontract","html_url":"https://github.com/btcontract","followers_url":"https://api.github.com/users/btcontract/followers","following_url":"https://api.github.com/users/btcontract/following{/other_user}","gists_url":"https://api.github.com/users/btcontract/gists{/gist_id}","starred_url":"https://api.github.com/users/btcontract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcontract/subscriptions","organizations_url":"https://api.github.com/users/btcontract/orgs","repos_url":"https://api.github.com/users/btcontract/repos","events_url":"https://api.github.com/users/btcontract/events{/privacy}","received_events_url":"https://api.github.com/users/btcontract/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T08:00:11Z","updated_at":"2018-11-28T08:00:11Z","author_association":"NONE","body":"Indeed, thanks for explanations. BLW gets it wrong here by checking a total in-flight amount."}}
{"actor":{"display_login":"btcontract"}}