{"action":"created","issue":{"url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/27","labels_url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/27/comments","events_url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/27/events","html_url":"https://github.com/msgilligan/bitcoin-spock/issues/27","id":55320868,"number":27,"title":"Testing STO to a large number of owners","user":{"login":"marv-engine","id":5295796,"avatar_url":"https://avatars.githubusercontent.com/u/5295796?v=3","gravatar_id":"","url":"https://api.github.com/users/marv-engine","html_url":"https://github.com/marv-engine","followers_url":"https://api.github.com/users/marv-engine/followers","following_url":"https://api.github.com/users/marv-engine/following{/other_user}","gists_url":"https://api.github.com/users/marv-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/marv-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marv-engine/subscriptions","organizations_url":"https://api.github.com/users/marv-engine/orgs","repos_url":"https://api.github.com/users/marv-engine/repos","events_url":"https://api.github.com/users/marv-engine/events{/privacy}","received_events_url":"https://api.github.com/users/marv-engine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-01-23T19:20:23Z","updated_at":"2015-01-28T04:07:29Z","closed_at":null,"body":"Here's one way to test STO to hundreds or thousands of owners:\r\n\r\nN existing owners each hold an integer number of divisible tokens and will receive .00000001 times the number of tokens they hold, so it will be easy to confirm they received the correct amount from the STO. The decimal portion of their balance after the STO will equal the integer portion, e.g. an address holding 1234.0 tokens before will now hold 1234.00001234 tokens after the STO.\r\n\r\n1. The sending address starts with\r\n * (N(N+1)/2) * .00000001 divisible SP tokens to be sent\r\n * N * .00000001 TMSC for the fee\r\n1. For i = 1 to N \r\n * assign i tokens to the i-th address\r\n   * the 1st address will have 1.0, 2nd will have 2.0, ..., the Nth address will have N.0\r\n1. The sending address will use STO to send (N(N+1)/2) * .00000001 tokens\r\n * this is exactly the number of tokens owned by the sending address\r\n1. The expected results are:\r\n * the sending address has 0.0 SP tokens\r\n * the sending address has 0.0 TMSC\r\n * each owner has (i + (i * .00000001)) tokens\r\n   * the decimal portion of their balance after the STO will equal the integer portion"},"comment":{"url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/comments/71778020","html_url":"https://github.com/msgilligan/bitcoin-spock/issues/27#issuecomment-71778020","issue_url":"https://api.github.com/repos/msgilligan/bitcoin-spock/issues/27","id":71778020,"user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T04:07:29Z","updated_at":"2015-01-28T04:07:29Z","body":"I'd say: go ahead. @marv-engine: if you come up with another test, let me know."}}