{"action":"created","comment":{"url":"https://api.github.com/repos/thorchain/THORChain/pulls/comments/214720651","pull_request_review_id":151832043,"id":214720651,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDcyMDY1MQ==","diff_hunk":"@@ -0,0 +1,346 @@\n+package clp\n+\n+import (\n+\t\"bytes\"\n+\t\"fmt\"\n+\t\"runtime\"\n+\t\"strconv\"\n+\t\"sync\"\n+\n+\t\"github.com/pkg/errors\"\n+\t\"github.com/spf13/cobra\"\n+\t\"github.com/thorchain/THORChain/app\"\n+\tclpTypes \"github.com/thorchain/THORChain/x/clp/types\"\n+\n+\t\"github.com/cosmos/cosmos-sdk/client/context\"\n+\tcosmosClientKeys \"github.com/cosmos/cosmos-sdk/client/keys\"\n+\tlcdhelpers \"github.com/cosmos/cosmos-sdk/client/lcd/helpers\"\n+\t\"github.com/cosmos/cosmos-sdk/crypto/keys\"\n+\tsdk \"github.com/cosmos/cosmos-sdk/types\"\n+\t\"github.com/cosmos/cosmos-sdk/wire\"\n+\t\"github.com/cosmos/cosmos-sdk/x/auth\"\n+\tauthcmd \"github.com/cosmos/cosmos-sdk/x/auth/client/cli\"\n+\t\"github.com/cosmos/cosmos-sdk/x/bank/client\"\n+\ttmcrypto \"github.com/tendermint/tendermint/crypto\"\n+)\n+\n+// create new clp transaction\n+func RunSpamCmd(cdc *wire.Codec) *cobra.Command {\n+\treturn &cobra.Command{\n+\t\tUse:   \"run_spammers <start_index>\",\n+\t\tShort: \"Run 10 previously created spammers starting from account index\",\n+\t\tArgs:  cobra.ExactArgs(1),\n+\t\tRunE: func(cmd *cobra.Command, args []string) error {\n+\t\t\tfmt.Println(\"starting\")\n+\t\t\tstartIndex, _ := strconv.Atoi(args[0])\n+\t\t\tnumSpammers := 80\n+\n+\t\t\truntime.GOMAXPROCS(runtime.NumCPU())\n+\n+\t\t\tfmt.Println(\"Getting keybase\")\n+\t\t\tkb, err := cosmosClientKeys.GetKeyBase() //XXX\n+\t\t\tif err != nil {\n+\t\t\t\tfmt.Println(err)\n+\t\t\t\treturn err\n+\t\t\t}\n+\t\t\tfmt.Println(\"Got keybase\")\n+\t\t\tfmt.Printf(\"Start Index is: %v\\n\", startIndex)\n+\n+\t\t\tvar wg sync.WaitGroup\n+\t\t\twg.Add(numSpammers)\n+\n+\t\t\tvar spammers []Spammer\n+\t\t\tfor i := startIndex; i < startIndex+numSpammers; i++ {\n+\t\t\t\tfmt.Printf(\"Spammer %v: Spawning...\\n\", i)\n+\t\t\t\tvar buffer bytes.Buffer\n+\t\t\t\tbuffer.WriteString(\"spammer\")\n+\t\t\t\tbuffer.WriteString(strconv.FormatInt(int64(i), 10))\n+\t\t\t\taccountName := buffer.String()\n+\n+\t\t\t\tnewSpammer := SpawnSpammer(accountName, i, kb)\n+\t\t\t\tspammers = append(spammers, newSpammer)\n+\t\t\t\tfmt.Printf(\"Spammer %v: Spawned...\\n\", i)","path":"x/clp/client/cli/spam.go","position":null,"original_position":62,"commit_id":"58ffdd5e512ddc2f61a2710807f929377f872c67","original_commit_id":"1b8a9a0c08069b502a95fb6cc3d4f09fdac6bc40","user":{"login":"philipstanislaus","id":6912756,"node_id":"MDQ6VXNlcjY5MTI3NTY=","avatar_url":"https://avatars1.githubusercontent.com/u/6912756?v=4","gravatar_id":"","url":"https://api.github.com/users/philipstanislaus","html_url":"https://github.com/philipstanislaus","followers_url":"https://api.github.com/users/philipstanislaus/followers","following_url":"https://api.github.com/users/philipstanislaus/following{/other_user}","gists_url":"https://api.github.com/users/philipstanislaus/gists{/gist_id}","starred_url":"https://api.github.com/users/philipstanislaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipstanislaus/subscriptions","organizations_url":"https://api.github.com/users/philipstanislaus/orgs","repos_url":"https://api.github.com/users/philipstanislaus/repos","events_url":"https://api.github.com/users/philipstanislaus/events{/privacy}","received_events_url":"https://api.github.com/users/philipstanislaus/received_events","type":"User","site_admin":false},"body":"restart loop","created_at":"2018-09-03T15:23:08Z","updated_at":"2018-09-03T15:39:16Z","html_url":"https://github.com/thorchain/THORChain/pull/19#discussion_r214720651","pull_request_url":"https://api.github.com/repos/thorchain/THORChain/pulls/19","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/comments/214720651"},"html":{"href":"https://github.com/thorchain/THORChain/pull/19#discussion_r214720651"},"pull_request":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/thorchain/THORChain/pulls/19","id":212770940,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzcwOTQw","html_url":"https://github.com/thorchain/THORChain/pull/19","diff_url":"https://github.com/thorchain/THORChain/pull/19.diff","patch_url":"https://github.com/thorchain/THORChain/pull/19.patch","issue_url":"https://api.github.com/repos/thorchain/THORChain/issues/19","number":19,"state":"open","locked":false,"title":"Merged phillips and aidans spammer code ","user":{"login":"musnit","id":743865,"node_id":"MDQ6VXNlcjc0Mzg2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/743865?v=4","gravatar_id":"","url":"https://api.github.com/users/musnit","html_url":"https://github.com/musnit","followers_url":"https://api.github.com/users/musnit/followers","following_url":"https://api.github.com/users/musnit/following{/other_user}","gists_url":"https://api.github.com/users/musnit/gists{/gist_id}","starred_url":"https://api.github.com/users/musnit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musnit/subscriptions","organizations_url":"https://api.github.com/users/musnit/orgs","repos_url":"https://api.github.com/users/musnit/repos","events_url":"https://api.github.com/users/musnit/events{/privacy}","received_events_url":"https://api.github.com/users/musnit/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-03T14:51:15Z","updated_at":"2018-09-03T15:39:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ba795d48dbbf739a6b9f50ffbbce7e750a3781e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thorchain/THORChain/pulls/19/commits","review_comments_url":"https://api.github.com/repos/thorchain/THORChain/pulls/19/comments","review_comment_url":"https://api.github.com/repos/thorchain/THORChain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thorchain/THORChain/issues/19/comments","statuses_url":"https://api.github.com/repos/thorchain/THORChain/statuses/58ffdd5e512ddc2f61a2710807f929377f872c67","head":{"label":"thorchain:merged_spammers","ref":"merged_spammers","sha":"58ffdd5e512ddc2f61a2710807f929377f872c67","user":{"login":"thorchain","id":40639099,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjM5MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/40639099?v=4","gravatar_id":"","url":"https://api.github.com/users/thorchain","html_url":"https://github.com/thorchain","followers_url":"https://api.github.com/users/thorchain/followers","following_url":"https://api.github.com/users/thorchain/following{/other_user}","gists_url":"https://api.github.com/users/thorchain/gists{/gist_id}","starred_url":"https://api.github.com/users/thorchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorchain/subscriptions","organizations_url":"https://api.github.com/users/thorchain/orgs","repos_url":"https://api.github.com/users/thorchain/repos","events_url":"https://api.github.com/users/thorchain/events{/privacy}","received_events_url":"https://api.github.com/users/thorchain/received_events","type":"Organization","site_admin":false},"repo":{"id":142644817,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI2NDQ4MTc=","name":"THORChain","full_name":"thorchain/THORChain","owner":{"login":"thorchain","id":40639099,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjM5MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/40639099?v=4","gravatar_id":"","url":"https://api.github.com/users/thorchain","html_url":"https://github.com/thorchain","followers_url":"https://api.github.com/users/thorchain/followers","following_url":"https://api.github.com/users/thorchain/following{/other_user}","gists_url":"https://api.github.com/users/thorchain/gists{/gist_id}","starred_url":"https://api.github.com/users/thorchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorchain/subscriptions","organizations_url":"https://api.github.com/users/thorchain/orgs","repos_url":"https://api.github.com/users/thorchain/repos","events_url":"https://api.github.com/users/thorchain/events{/privacy}","received_events_url":"https://api.github.com/users/thorchain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thorchain/THORChain","description":"A lightning fast decentralised exchange protocol.","fork":false,"url":"https://api.github.com/repos/thorchain/THORChain","forks_url":"https://api.github.com/repos/thorchain/THORChain/forks","keys_url":"https://api.github.com/repos/thorchain/THORChain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorchain/THORChain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorchain/THORChain/teams","hooks_url":"https://api.github.com/repos/thorchain/THORChain/hooks","issue_events_url":"https://api.github.com/repos/thorchain/THORChain/issues/events{/number}","events_url":"https://api.github.com/repos/thorchain/THORChain/events","assignees_url":"https://api.github.com/repos/thorchain/THORChain/assignees{/user}","branches_url":"https://api.github.com/repos/thorchain/THORChain/branches{/branch}","tags_url":"https://api.github.com/repos/thorchain/THORChain/tags","blobs_url":"https://api.github.com/repos/thorchain/THORChain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorchain/THORChain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorchain/THORChain/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorchain/THORChain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorchain/THORChain/statuses/{sha}","languages_url":"https://api.github.com/repos/thorchain/THORChain/languages","stargazers_url":"https://api.github.com/repos/thorchain/THORChain/stargazers","contributors_url":"https://api.github.com/repos/thorchain/THORChain/contributors","subscribers_url":"https://api.github.com/repos/thorchain/THORChain/subscribers","subscription_url":"https://api.github.com/repos/thorchain/THORChain/subscription","commits_url":"https://api.github.com/repos/thorchain/THORChain/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorchain/THORChain/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorchain/THORChain/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorchain/THORChain/issues/comments{/number}","contents_url":"https://api.github.com/repos/thorchain/THORChain/contents/{+path}","compare_url":"https://api.github.com/repos/thorchain/THORChain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorchain/THORChain/merges","archive_url":"https://api.github.com/repos/thorchain/THORChain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorchain/THORChain/downloads","issues_url":"https://api.github.com/repos/thorchain/THORChain/issues{/number}","pulls_url":"https://api.github.com/repos/thorchain/THORChain/pulls{/number}","milestones_url":"https://api.github.com/repos/thorchain/THORChain/milestones{/number}","notifications_url":"https://api.github.com/repos/thorchain/THORChain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorchain/THORChain/labels{/name}","releases_url":"https://api.github.com/repos/thorchain/THORChain/releases{/id}","deployments_url":"https://api.github.com/repos/thorchain/THORChain/deployments","created_at":"2018-07-28T03:52:21Z","updated_at":"2018-09-01T16:32:33Z","pushed_at":"2018-09-03T15:01:51Z","git_url":"git://github.com/thorchain/THORChain.git","ssh_url":"git@github.com:thorchain/THORChain.git","clone_url":"https://github.com/thorchain/THORChain.git","svn_url":"https://github.com/thorchain/THORChain","homepage":"https://thorchain.org","size":3241,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"thorchain:clp_complete","ref":"clp_complete","sha":"4cbe0828bac81dd15a8f8b9a69d64d3472585ecf","user":{"login":"thorchain","id":40639099,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjM5MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/40639099?v=4","gravatar_id":"","url":"https://api.github.com/users/thorchain","html_url":"https://github.com/thorchain","followers_url":"https://api.github.com/users/thorchain/followers","following_url":"https://api.github.com/users/thorchain/following{/other_user}","gists_url":"https://api.github.com/users/thorchain/gists{/gist_id}","starred_url":"https://api.github.com/users/thorchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorchain/subscriptions","organizations_url":"https://api.github.com/users/thorchain/orgs","repos_url":"https://api.github.com/users/thorchain/repos","events_url":"https://api.github.com/users/thorchain/events{/privacy}","received_events_url":"https://api.github.com/users/thorchain/received_events","type":"Organization","site_admin":false},"repo":{"id":142644817,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI2NDQ4MTc=","name":"THORChain","full_name":"thorchain/THORChain","owner":{"login":"thorchain","id":40639099,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNjM5MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/40639099?v=4","gravatar_id":"","url":"https://api.github.com/users/thorchain","html_url":"https://github.com/thorchain","followers_url":"https://api.github.com/users/thorchain/followers","following_url":"https://api.github.com/users/thorchain/following{/other_user}","gists_url":"https://api.github.com/users/thorchain/gists{/gist_id}","starred_url":"https://api.github.com/users/thorchain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorchain/subscriptions","organizations_url":"https://api.github.com/users/thorchain/orgs","repos_url":"https://api.github.com/users/thorchain/repos","events_url":"https://api.github.com/users/thorchain/events{/privacy}","received_events_url":"https://api.github.com/users/thorchain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thorchain/THORChain","description":"A lightning fast decentralised exchange protocol.","fork":false,"url":"https://api.github.com/repos/thorchain/THORChain","forks_url":"https://api.github.com/repos/thorchain/THORChain/forks","keys_url":"https://api.github.com/repos/thorchain/THORChain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thorchain/THORChain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thorchain/THORChain/teams","hooks_url":"https://api.github.com/repos/thorchain/THORChain/hooks","issue_events_url":"https://api.github.com/repos/thorchain/THORChain/issues/events{/number}","events_url":"https://api.github.com/repos/thorchain/THORChain/events","assignees_url":"https://api.github.com/repos/thorchain/THORChain/assignees{/user}","branches_url":"https://api.github.com/repos/thorchain/THORChain/branches{/branch}","tags_url":"https://api.github.com/repos/thorchain/THORChain/tags","blobs_url":"https://api.github.com/repos/thorchain/THORChain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thorchain/THORChain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thorchain/THORChain/git/refs{/sha}","trees_url":"https://api.github.com/repos/thorchain/THORChain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thorchain/THORChain/statuses/{sha}","languages_url":"https://api.github.com/repos/thorchain/THORChain/languages","stargazers_url":"https://api.github.com/repos/thorchain/THORChain/stargazers","contributors_url":"https://api.github.com/repos/thorchain/THORChain/contributors","subscribers_url":"https://api.github.com/repos/thorchain/THORChain/subscribers","subscription_url":"https://api.github.com/repos/thorchain/THORChain/subscription","commits_url":"https://api.github.com/repos/thorchain/THORChain/commits{/sha}","git_commits_url":"https://api.github.com/repos/thorchain/THORChain/git/commits{/sha}","comments_url":"https://api.github.com/repos/thorchain/THORChain/comments{/number}","issue_comment_url":"https://api.github.com/repos/thorchain/THORChain/issues/comments{/number}","contents_url":"https://api.github.com/repos/thorchain/THORChain/contents/{+path}","compare_url":"https://api.github.com/repos/thorchain/THORChain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thorchain/THORChain/merges","archive_url":"https://api.github.com/repos/thorchain/THORChain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thorchain/THORChain/downloads","issues_url":"https://api.github.com/repos/thorchain/THORChain/issues{/number}","pulls_url":"https://api.github.com/repos/thorchain/THORChain/pulls{/number}","milestones_url":"https://api.github.com/repos/thorchain/THORChain/milestones{/number}","notifications_url":"https://api.github.com/repos/thorchain/THORChain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thorchain/THORChain/labels{/name}","releases_url":"https://api.github.com/repos/thorchain/THORChain/releases{/id}","deployments_url":"https://api.github.com/repos/thorchain/THORChain/deployments","created_at":"2018-07-28T03:52:21Z","updated_at":"2018-09-01T16:32:33Z","pushed_at":"2018-09-03T15:01:51Z","git_url":"git://github.com/thorchain/THORChain.git","ssh_url":"git@github.com:thorchain/THORChain.git","clone_url":"https://github.com/thorchain/THORChain.git","svn_url":"https://github.com/thorchain/THORChain","homepage":"https://thorchain.org","size":3241,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/19"},"html":{"href":"https://github.com/thorchain/THORChain/pull/19"},"issue":{"href":"https://api.github.com/repos/thorchain/THORChain/issues/19"},"comments":{"href":"https://api.github.com/repos/thorchain/THORChain/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thorchain/THORChain/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/thorchain/THORChain/statuses/58ffdd5e512ddc2f61a2710807f929377f872c67"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"philipstanislaus"}}