{"action":"closed","issue":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/1131","labels_url":"https://api.github.com/repos/spesmilo/electrum/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/spesmilo/electrum/issues/1131/comments","events_url":"https://api.github.com/repos/spesmilo/electrum/issues/1131/events","html_url":"https://github.com/spesmilo/electrum/issues/1131","id":66447307,"number":1131,"title":"Merchant script automatically marks small amounts as received","user":{"login":"Frezkky","id":11807030,"avatar_url":"https://avatars.githubusercontent.com/u/11807030?v=3","gravatar_id":"","url":"https://api.github.com/users/Frezkky","html_url":"https://github.com/Frezkky","followers_url":"https://api.github.com/users/Frezkky/followers","following_url":"https://api.github.com/users/Frezkky/following{/other_user}","gists_url":"https://api.github.com/users/Frezkky/gists{/gist_id}","starred_url":"https://api.github.com/users/Frezkky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frezkky/subscriptions","organizations_url":"https://api.github.com/users/Frezkky/orgs","repos_url":"https://api.github.com/users/Frezkky/repos","events_url":"https://api.github.com/users/Frezkky/events{/privacy}","received_events_url":"https://api.github.com/users/Frezkky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T14:56:27Z","updated_at":"2015-04-05T16:58:37Z","closed_at":"2015-04-05T16:58:37Z","body":"Small values (e.g., 0.00000020) are rounded to zero when requested and automatically accepted after few seconds.\r\n\r\nThe problem is line 214:\r\n```\r\n+ \" VALUES ('%s', %f, %d, datetime('now'), datetime('now', '+%d Minutes'), NULL, NULL);\"%(addr, amount, confs, minutes)\r\n```\r\nthe `%f` formater has [default precision](https://docs.python.org/2/library/stdtypes.html#string-formatting-operations) set to only 6 digits after the decimal point. In order to be consistent with bitcoin specification it should be set to 8:\r\n\r\n```\r\n+ \" VALUES ('%s', %.8f, %d, datetime('now'), datetime('now', '+%d Minutes'), NULL, NULL);\"%(addr, amount, confs, minutes)\r\n```\r\n"}}