{"action":"opened","issue":{"url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2342","repository_url":"https://api.github.com/repos/lightningnetwork/lnd","labels_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2342/labels{/name}","comments_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2342/comments","events_url":"https://api.github.com/repos/lightningnetwork/lnd/issues/2342/events","html_url":"https://github.com/lightningnetwork/lnd/issues/2342","id":392255534,"node_id":"MDU6SXNzdWUzOTIyNTU1MzQ=","number":2342,"title":"Strange fee calculation","user":{"login":"RQ732P","id":40927408,"node_id":"MDQ6VXNlcjQwOTI3NDA4","avatar_url":"https://avatars0.githubusercontent.com/u/40927408?v=4","gravatar_id":"","url":"https://api.github.com/users/RQ732P","html_url":"https://github.com/RQ732P","followers_url":"https://api.github.com/users/RQ732P/followers","following_url":"https://api.github.com/users/RQ732P/following{/other_user}","gists_url":"https://api.github.com/users/RQ732P/gists{/gist_id}","starred_url":"https://api.github.com/users/RQ732P/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RQ732P/subscriptions","organizations_url":"https://api.github.com/users/RQ732P/orgs","repos_url":"https://api.github.com/users/RQ732P/repos","events_url":"https://api.github.com/users/RQ732P/events{/privacy}","received_events_url":"https://api.github.com/users/RQ732P/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T17:16:51Z","updated_at":"2018-12-18T17:16:51Z","closed_at":null,"author_association":"NONE","body":"Consider these two commitment TXs generated by LND:\r\n\r\nTX 1\r\nIncludes HTLC 0 of amount 10,000,000 millsats\r\nInput: 100,000 sats (funding)\r\nOutput 0: 10,000 sats for HTLC 0\r\nOutput 1: 89,104 sats\r\nfee: 896 sats = Commitment weight:   724 + 172 * num-untrimmed-htlc-outputs\r\n\r\nTX 2\r\nIncludes HTLC 0 of amount 10,000,001 millsats\r\nInput: 100,000 sats (funding)\r\nOutput 0: 10,000 sats for HTLC 0\r\nOutput 1: 89,103 sats\r\nfee: 897 sats\r\n\r\nThe fee for TX 2 is 897 sats when it should be 896 according to the formula.\r\n"}}
{"actor":{"display_login":"RQ732P"}}