{"action":"created","issue":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/2470","repository_url":"https://api.github.com/repos/spesmilo/electrum","labels_url":"https://api.github.com/repos/spesmilo/electrum/issues/2470/labels{/name}","comments_url":"https://api.github.com/repos/spesmilo/electrum/issues/2470/comments","events_url":"https://api.github.com/repos/spesmilo/electrum/issues/2470/events","html_url":"https://github.com/spesmilo/electrum/issues/2470","id":232422045,"number":2470,"title":"2-4 hours to sign a transaction with wallets with large numbers of imported private keys","user":{"login":"jtoomim","id":11898859,"avatar_url":"https://avatars3.githubusercontent.com/u/11898859?v=3","gravatar_id":"","url":"https://api.github.com/users/jtoomim","html_url":"https://github.com/jtoomim","followers_url":"https://api.github.com/users/jtoomim/followers","following_url":"https://api.github.com/users/jtoomim/following{/other_user}","gists_url":"https://api.github.com/users/jtoomim/gists{/gist_id}","starred_url":"https://api.github.com/users/jtoomim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtoomim/subscriptions","organizations_url":"https://api.github.com/users/jtoomim/orgs","repos_url":"https://api.github.com/users/jtoomim/repos","events_url":"https://api.github.com/users/jtoomim/events{/privacy}","received_events_url":"https://api.github.com/users/jtoomim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-05-31T00:42:53Z","updated_at":"2017-07-04T16:25:34Z","closed_at":null,"body":"I have a wallet file comprised of a few hundred imported private keys, some of which have transactions going back to 2015. Many wallet operations take a few hours to complete. These operations appear to include:\r\n\r\n1. Generating an unsigned transaction (e.g. via Preview)\r\n2. Signing a generated transaction\r\n3. Adding or editing a label for an address\r\n\r\nBecause sending a transaction requires both 1 and 2, it usually takes about 8-12 hours total to send a transaction.\r\n\r\nI can understand a python program being slow with this many private keys, but taking multiple hours suggests to me that there is an O(n^2) issue somewhere. In particular, adding a label shouldn't be slow. (I haven't checked to see how long that actually takes. I just tried it once, noticed that it caused the UI to hang, and force-quitted it.)\r\n\r\nThe wallet has very few UTXOs left, but it has a total of around 1000 (or maybe more) spent TXOs. I have not determined whether this performance issue is related to the number of addresses, the number of TXOs, or something else.\r\n\r\nTest results are from OS X 10.11.3 with Electrum 2.8.1 on a 2013 Macbook Pro Retina 13 (2.4 GHz Core I5, 8 GB)."},"comment":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/comments/312914952","html_url":"https://github.com/spesmilo/electrum/issues/2470#issuecomment-312914952","issue_url":"https://api.github.com/repos/spesmilo/electrum/issues/2470","id":312914952,"user":{"login":"ecdsa","id":2343238,"avatar_url":"https://avatars3.githubusercontent.com/u/2343238?v=3","gravatar_id":"","url":"https://api.github.com/users/ecdsa","html_url":"https://github.com/ecdsa","followers_url":"https://api.github.com/users/ecdsa/followers","following_url":"https://api.github.com/users/ecdsa/following{/other_user}","gists_url":"https://api.github.com/users/ecdsa/gists{/gist_id}","starred_url":"https://api.github.com/users/ecdsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecdsa/subscriptions","organizations_url":"https://api.github.com/users/ecdsa/orgs","repos_url":"https://api.github.com/users/ecdsa/repos","events_url":"https://api.github.com/users/ecdsa/events{/privacy}","received_events_url":"https://api.github.com/users/ecdsa/received_events","type":"User","site_admin":false},"created_at":"2017-07-04T16:25:34Z","updated_at":"2017-07-04T16:25:34Z","body":"what's the size of the wallet file?"}}
{"actor":{"display_login":"ecdsa"}}