{"action":"created","comment":{"url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments/26601756","id":26601756,"diff_hunk":"@@ -1262,6 +1420,37 @@ func (w *Wallet) TotalReceived(confirms int) (btcutil.Amount, error) {\n \treturn amount, nil\n }\n \n+// TotalReceivedForAccount iterates through a wallet's transaction history,\n+// returning the total amount of bitcoins received for a single wallet\n+// account.\n+func (w *Wallet) TotalReceivedForAccount(account uint32, confirms int) (btcutil.Amount, uint64, error) {","path":"wallet.go","position":349,"original_position":349,"commit_id":"dd835b4e0cf6758351b55da666f42a46951400fa","original_commit_id":"dd835b4e0cf6758351b55da666f42a46951400fa","user":{"login":"jrick","id":1420313,"avatar_url":"https://avatars.githubusercontent.com/u/1420313?v=3","gravatar_id":"","url":"https://api.github.com/users/jrick","html_url":"https://github.com/jrick","followers_url":"https://api.github.com/users/jrick/followers","following_url":"https://api.github.com/users/jrick/following{/other_user}","gists_url":"https://api.github.com/users/jrick/gists{/gist_id}","starred_url":"https://api.github.com/users/jrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrick/subscriptions","organizations_url":"https://api.github.com/users/jrick/orgs","repos_url":"https://api.github.com/users/jrick/repos","events_url":"https://api.github.com/users/jrick/events{/privacy}","received_events_url":"https://api.github.com/users/jrick/received_events","type":"User","site_admin":false},"body":"The previous function which did this and didn't take the account (GetAddressesByAccount) is no longer used anywhere and should be removed.","created_at":"2015-03-17T18:31:40Z","updated_at":"2015-03-17T18:31:40Z","html_url":"https://github.com/btcsuite/btcwallet/pull/155#discussion_r26601756","pull_request_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments/26601756"},"html":{"href":"https://github.com/btcsuite/btcwallet/pull/155#discussion_r26601756"},"pull_request":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155","id":26211709,"html_url":"https://github.com/btcsuite/btcwallet/pull/155","diff_url":"https://github.com/btcsuite/btcwallet/pull/155.diff","patch_url":"https://github.com/btcsuite/btcwallet/pull/155.patch","issue_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/155","number":155,"state":"open","locked":false,"title":"Account name","user":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"body":"**NOTE: This pull request requires #147**\r\n\r\nUpdated `waddrmgr` to support account names and integrated with wallet RPC calls.","created_at":"2014-12-17T09:51:32Z","updated_at":"2015-03-17T18:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36d8039778ac0a53c2133ced94fb79381b7838a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155/commits","review_comments_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155/comments","review_comment_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/155/comments","statuses_url":"https://api.github.com/repos/btcsuite/btcwallet/statuses/dd835b4e0cf6758351b55da666f42a46951400fa","head":{"label":"tuxcanfly:account-name","ref":"account-name","sha":"dd835b4e0cf6758351b55da666f42a46951400fa","user":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"repo":{"id":21453162,"name":"btcwallet","full_name":"tuxcanfly/btcwallet","owner":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuxcanfly/btcwallet","description":"","fork":true,"url":"https://api.github.com/repos/tuxcanfly/btcwallet","forks_url":"https://api.github.com/repos/tuxcanfly/btcwallet/forks","keys_url":"https://api.github.com/repos/tuxcanfly/btcwallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuxcanfly/btcwallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuxcanfly/btcwallet/teams","hooks_url":"https://api.github.com/repos/tuxcanfly/btcwallet/hooks","issue_events_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues/events{/number}","events_url":"https://api.github.com/repos/tuxcanfly/btcwallet/events","assignees_url":"https://api.github.com/repos/tuxcanfly/btcwallet/assignees{/user}","branches_url":"https://api.github.com/repos/tuxcanfly/btcwallet/branches{/branch}","tags_url":"https://api.github.com/repos/tuxcanfly/btcwallet/tags","blobs_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuxcanfly/btcwallet/statuses/{sha}","languages_url":"https://api.github.com/repos/tuxcanfly/btcwallet/languages","stargazers_url":"https://api.github.com/repos/tuxcanfly/btcwallet/stargazers","contributors_url":"https://api.github.com/repos/tuxcanfly/btcwallet/contributors","subscribers_url":"https://api.github.com/repos/tuxcanfly/btcwallet/subscribers","subscription_url":"https://api.github.com/repos/tuxcanfly/btcwallet/subscription","commits_url":"https://api.github.com/repos/tuxcanfly/btcwallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuxcanfly/btcwallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuxcanfly/btcwallet/contents/{+path}","compare_url":"https://api.github.com/repos/tuxcanfly/btcwallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuxcanfly/btcwallet/merges","archive_url":"https://api.github.com/repos/tuxcanfly/btcwallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuxcanfly/btcwallet/downloads","issues_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues{/number}","pulls_url":"https://api.github.com/repos/tuxcanfly/btcwallet/pulls{/number}","milestones_url":"https://api.github.com/repos/tuxcanfly/btcwallet/milestones{/number}","notifications_url":"https://api.github.com/repos/tuxcanfly/btcwallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuxcanfly/btcwallet/labels{/name}","releases_url":"https://api.github.com/repos/tuxcanfly/btcwallet/releases{/id}","created_at":"2014-07-03T07:10:43Z","updated_at":"2014-07-09T11:38:45Z","pushed_at":"2015-03-17T17:31:48Z","git_url":"git://github.com/tuxcanfly/btcwallet.git","ssh_url":"git@github.com:tuxcanfly/btcwallet.git","clone_url":"https://github.com/tuxcanfly/btcwallet.git","svn_url":"https://github.com/tuxcanfly/btcwallet","homepage":null,"size":4004,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"btcsuite:master","ref":"master","sha":"85fe722e997db5912b3f66316bb28bbcefce252d","user":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"repo":{"id":12136863,"name":"btcwallet","full_name":"btcsuite/btcwallet","owner":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/btcsuite/btcwallet","description":"","fork":false,"url":"https://api.github.com/repos/btcsuite/btcwallet","forks_url":"https://api.github.com/repos/btcsuite/btcwallet/forks","keys_url":"https://api.github.com/repos/btcsuite/btcwallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/btcsuite/btcwallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/btcsuite/btcwallet/teams","hooks_url":"https://api.github.com/repos/btcsuite/btcwallet/hooks","issue_events_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/events{/number}","events_url":"https://api.github.com/repos/btcsuite/btcwallet/events","assignees_url":"https://api.github.com/repos/btcsuite/btcwallet/assignees{/user}","branches_url":"https://api.github.com/repos/btcsuite/btcwallet/branches{/branch}","tags_url":"https://api.github.com/repos/btcsuite/btcwallet/tags","blobs_url":"https://api.github.com/repos/btcsuite/btcwallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/btcsuite/btcwallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/btcsuite/btcwallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/btcsuite/btcwallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/btcsuite/btcwallet/statuses/{sha}","languages_url":"https://api.github.com/repos/btcsuite/btcwallet/languages","stargazers_url":"https://api.github.com/repos/btcsuite/btcwallet/stargazers","contributors_url":"https://api.github.com/repos/btcsuite/btcwallet/contributors","subscribers_url":"https://api.github.com/repos/btcsuite/btcwallet/subscribers","subscription_url":"https://api.github.com/repos/btcsuite/btcwallet/subscription","commits_url":"https://api.github.com/repos/btcsuite/btcwallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/btcsuite/btcwallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/btcsuite/btcwallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/btcsuite/btcwallet/contents/{+path}","compare_url":"https://api.github.com/repos/btcsuite/btcwallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/btcsuite/btcwallet/merges","archive_url":"https://api.github.com/repos/btcsuite/btcwallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/btcsuite/btcwallet/downloads","issues_url":"https://api.github.com/repos/btcsuite/btcwallet/issues{/number}","pulls_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls{/number}","milestones_url":"https://api.github.com/repos/btcsuite/btcwallet/milestones{/number}","notifications_url":"https://api.github.com/repos/btcsuite/btcwallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/btcsuite/btcwallet/labels{/name}","releases_url":"https://api.github.com/repos/btcsuite/btcwallet/releases{/id}","created_at":"2013-08-15T14:53:57Z","updated_at":"2015-03-10T20:08:06Z","pushed_at":"2015-03-10T20:08:06Z","git_url":"git://github.com/btcsuite/btcwallet.git","ssh_url":"git@github.com:btcsuite/btcwallet.git","clone_url":"https://github.com/btcsuite/btcwallet.git","svn_url":"https://github.com/btcsuite/btcwallet","homepage":null,"size":6484,"stargazers_count":61,"watchers_count":61,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":25,"forks":34,"open_issues":25,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155"},"html":{"href":"https://github.com/btcsuite/btcwallet/pull/155"},"issue":{"href":"https://api.github.com/repos/btcsuite/btcwallet/issues/155"},"comments":{"href":"https://api.github.com/repos/btcsuite/btcwallet/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/btcsuite/btcwallet/statuses/dd835b4e0cf6758351b55da666f42a46951400fa"}}}}