{"action":"created","comment":{"url":"https://api.github.com/repos/meritlabs/merit/pulls/comments/222133726","pull_request_review_id":160950510,"id":222133726,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjEzMzcyNg==","diff_hunk":"@@ -1097,6 +1097,137 @@ UniValue easyreceive(const JSONRPCRequest& request)\n             coin_control);\n }\n \n+UniValue easysendinvite(const JSONRPCRequest& request)\n+{\n+\n+    CWallet * const pwallet = GetWalletForJSONRPCRequest(request);\n+    if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) {\n+        return NullUniValue;\n+    }\n+\n+    if (request.fHelp || request.params.size() > 3)\n+        throw std::runtime_error(\n+            \"easysend (amount \\\"password\\\", blocktimeout)\\n\"\n+            \"\\nSend invites to a given channel.\\n\"\n+            + HelpRequiringPassphrase(pwallet) +\n+            \"\\nArguments:\\n\"\n+            \"1. \\\"amount\\\"             (numeric or string) Optional amount of invites to send. eg 5\\n\"\n+            \"2. \\\"password\\\"           (string) Optional password to further secure the transaction.\\n\"\n+            \"3. blocktimeout           (numeric) The amount of blocks the transaction can be buried until the receiver cannot accept funds\\n\"\n+            \"\\nResult:\\n\"\n+            \"\\\"txid\\\"                  (string) The transaction id.\\n\"\n+            \"\\\"pub\\\"                   (string) Escrow public key in hex.\\n\"\n+            \"\\nExamples:\\n\"\n+            + HelpExampleCli(\"easysendinvite\", \"\")\n+            + HelpExampleCli(\"easysendinvite\", \"1 abc124 100\")\n+        );\n+\n+    ObserveSafeMode();\n+    LOCK2(cs_main, pwallet->cs_wallet);\n+\n+\n+    // Amount\n+    int amount = 1;\n+    if (!request.params[0].isNull()) {\n+        amount = request.params[0].get_int();\n+        if (amount < 0) {\n+            throw JSONRPCError(RPC_INVALID_PARAMS, \"Invalid amount for send\");\n+        }\n+    }\n+\n+    std::string optional_password = \"\";\n+    if (!request.params[1].isNull()) {\n+        optional_password = request.params[1].get_str();\n+    }\n+\n+    int max_blocks = 10080; // about a week.\n+    if(!request.params[2].isNull()) {\n+        max_blocks = request.params[2].get_int();\n+    }\n+\n+    if (max_blocks < 1) {\n+        throw JSONRPCError(RPC_INVALID_PARAMS, \"maxblocks must be greater than 0\");\n+    }\n+\n+    EnsureWalletIsUnlocked(pwallet);\n+\n+    CAmount balance = pwallet->GetBalance(true);","path":"src/wallet/rpcwallet.cpp","position":67,"original_position":67,"commit_id":"ce469d1094042120dd9201733c7d83022dc9aa16","original_commit_id":"ce469d1094042120dd9201733c7d83022dc9aa16","user":{"login":"mempko","id":3760639,"node_id":"MDQ6VXNlcjM3NjA2Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/3760639?v=4","gravatar_id":"","url":"https://api.github.com/users/mempko","html_url":"https://github.com/mempko","followers_url":"https://api.github.com/users/mempko/followers","following_url":"https://api.github.com/users/mempko/following{/other_user}","gists_url":"https://api.github.com/users/mempko/gists{/gist_id}","starred_url":"https://api.github.com/users/mempko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mempko/subscriptions","organizations_url":"https://api.github.com/users/mempko/orgs","repos_url":"https://api.github.com/users/mempko/repos","events_url":"https://api.github.com/users/mempko/events{/privacy}","received_events_url":"https://api.github.com/users/mempko/received_events","type":"User","site_admin":false},"body":"I forget, does this balance include the confirmation invite?","created_at":"2018-10-02T22:36:01Z","updated_at":"2018-10-02T22:36:31Z","html_url":"https://github.com/meritlabs/merit/pull/400#discussion_r222133726","pull_request_url":"https://api.github.com/repos/meritlabs/merit/pulls/400","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/comments/222133726"},"html":{"href":"https://github.com/meritlabs/merit/pull/400#discussion_r222133726"},"pull_request":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/400"}}},"pull_request":{"url":"https://api.github.com/repos/meritlabs/merit/pulls/400","id":219787712,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Nzg3NzEy","html_url":"https://github.com/meritlabs/merit/pull/400","diff_url":"https://github.com/meritlabs/merit/pull/400.diff","patch_url":"https://github.com/meritlabs/merit/pull/400.patch","issue_url":"https://api.github.com/repos/meritlabs/merit/issues/400","number":400,"state":"open","locked":false,"title":"Call to easysend invites","user":{"login":"tonypizzicato","id":640122,"node_id":"MDQ6VXNlcjY0MDEyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/640122?v=4","gravatar_id":"","url":"https://api.github.com/users/tonypizzicato","html_url":"https://github.com/tonypizzicato","followers_url":"https://api.github.com/users/tonypizzicato/followers","following_url":"https://api.github.com/users/tonypizzicato/following{/other_user}","gists_url":"https://api.github.com/users/tonypizzicato/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypizzicato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypizzicato/subscriptions","organizations_url":"https://api.github.com/users/tonypizzicato/orgs","repos_url":"https://api.github.com/users/tonypizzicato/repos","events_url":"https://api.github.com/users/tonypizzicato/events{/privacy}","received_events_url":"https://api.github.com/users/tonypizzicato/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-02T17:40:57Z","updated_at":"2018-10-02T22:36:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4434fb6c3e970e40cd1df027afd5a7aed1b6cd3c","assignee":{"login":"tonypizzicato","id":640122,"node_id":"MDQ6VXNlcjY0MDEyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/640122?v=4","gravatar_id":"","url":"https://api.github.com/users/tonypizzicato","html_url":"https://github.com/tonypizzicato","followers_url":"https://api.github.com/users/tonypizzicato/followers","following_url":"https://api.github.com/users/tonypizzicato/following{/other_user}","gists_url":"https://api.github.com/users/tonypizzicato/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypizzicato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypizzicato/subscriptions","organizations_url":"https://api.github.com/users/tonypizzicato/orgs","repos_url":"https://api.github.com/users/tonypizzicato/repos","events_url":"https://api.github.com/users/tonypizzicato/events{/privacy}","received_events_url":"https://api.github.com/users/tonypizzicato/received_events","type":"User","site_admin":false},"assignees":[{"login":"tonypizzicato","id":640122,"node_id":"MDQ6VXNlcjY0MDEyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/640122?v=4","gravatar_id":"","url":"https://api.github.com/users/tonypizzicato","html_url":"https://github.com/tonypizzicato","followers_url":"https://api.github.com/users/tonypizzicato/followers","following_url":"https://api.github.com/users/tonypizzicato/following{/other_user}","gists_url":"https://api.github.com/users/tonypizzicato/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypizzicato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypizzicato/subscriptions","organizations_url":"https://api.github.com/users/tonypizzicato/orgs","repos_url":"https://api.github.com/users/tonypizzicato/repos","events_url":"https://api.github.com/users/tonypizzicato/events{/privacy}","received_events_url":"https://api.github.com/users/tonypizzicato/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":669183712,"node_id":"MDU6TGFiZWw2NjkxODM3MTI=","url":"https://api.github.com/repos/meritlabs/merit/labels/ready%20for%20review","name":"ready for review","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/meritlabs/merit/pulls/400/commits","review_comments_url":"https://api.github.com/repos/meritlabs/merit/pulls/400/comments","review_comment_url":"https://api.github.com/repos/meritlabs/merit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meritlabs/merit/issues/400/comments","statuses_url":"https://api.github.com/repos/meritlabs/merit/statuses/ce469d1094042120dd9201733c7d83022dc9aa16","head":{"label":"meritlabs:feature/easysend-invite","ref":"feature/easysend-invite","sha":"ce469d1094042120dd9201733c7d83022dc9aa16","user":{"login":"meritlabs","id":30664832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjY0ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/30664832?v=4","gravatar_id":"","url":"https://api.github.com/users/meritlabs","html_url":"https://github.com/meritlabs","followers_url":"https://api.github.com/users/meritlabs/followers","following_url":"https://api.github.com/users/meritlabs/following{/other_user}","gists_url":"https://api.github.com/users/meritlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/meritlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meritlabs/subscriptions","organizations_url":"https://api.github.com/users/meritlabs/orgs","repos_url":"https://api.github.com/users/meritlabs/repos","events_url":"https://api.github.com/users/meritlabs/events{/privacy}","received_events_url":"https://api.github.com/users/meritlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":100290270,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAyOTAyNzA=","name":"merit","full_name":"meritlabs/merit","private":false,"owner":{"login":"meritlabs","id":30664832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjY0ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/30664832?v=4","gravatar_id":"","url":"https://api.github.com/users/meritlabs","html_url":"https://github.com/meritlabs","followers_url":"https://api.github.com/users/meritlabs/followers","following_url":"https://api.github.com/users/meritlabs/following{/other_user}","gists_url":"https://api.github.com/users/meritlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/meritlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meritlabs/subscriptions","organizations_url":"https://api.github.com/users/meritlabs/orgs","repos_url":"https://api.github.com/users/meritlabs/repos","events_url":"https://api.github.com/users/meritlabs/events{/privacy}","received_events_url":"https://api.github.com/users/meritlabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/meritlabs/merit","description":"Merit aims to be the world's most adopted digital currency.","fork":false,"url":"https://api.github.com/repos/meritlabs/merit","forks_url":"https://api.github.com/repos/meritlabs/merit/forks","keys_url":"https://api.github.com/repos/meritlabs/merit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meritlabs/merit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meritlabs/merit/teams","hooks_url":"https://api.github.com/repos/meritlabs/merit/hooks","issue_events_url":"https://api.github.com/repos/meritlabs/merit/issues/events{/number}","events_url":"https://api.github.com/repos/meritlabs/merit/events","assignees_url":"https://api.github.com/repos/meritlabs/merit/assignees{/user}","branches_url":"https://api.github.com/repos/meritlabs/merit/branches{/branch}","tags_url":"https://api.github.com/repos/meritlabs/merit/tags","blobs_url":"https://api.github.com/repos/meritlabs/merit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meritlabs/merit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meritlabs/merit/git/refs{/sha}","trees_url":"https://api.github.com/repos/meritlabs/merit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meritlabs/merit/statuses/{sha}","languages_url":"https://api.github.com/repos/meritlabs/merit/languages","stargazers_url":"https://api.github.com/repos/meritlabs/merit/stargazers","contributors_url":"https://api.github.com/repos/meritlabs/merit/contributors","subscribers_url":"https://api.github.com/repos/meritlabs/merit/subscribers","subscription_url":"https://api.github.com/repos/meritlabs/merit/subscription","commits_url":"https://api.github.com/repos/meritlabs/merit/commits{/sha}","git_commits_url":"https://api.github.com/repos/meritlabs/merit/git/commits{/sha}","comments_url":"https://api.github.com/repos/meritlabs/merit/comments{/number}","issue_comment_url":"https://api.github.com/repos/meritlabs/merit/issues/comments{/number}","contents_url":"https://api.github.com/repos/meritlabs/merit/contents/{+path}","compare_url":"https://api.github.com/repos/meritlabs/merit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meritlabs/merit/merges","archive_url":"https://api.github.com/repos/meritlabs/merit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meritlabs/merit/downloads","issues_url":"https://api.github.com/repos/meritlabs/merit/issues{/number}","pulls_url":"https://api.github.com/repos/meritlabs/merit/pulls{/number}","milestones_url":"https://api.github.com/repos/meritlabs/merit/milestones{/number}","notifications_url":"https://api.github.com/repos/meritlabs/merit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meritlabs/merit/labels{/name}","releases_url":"https://api.github.com/repos/meritlabs/merit/releases{/id}","deployments_url":"https://api.github.com/repos/meritlabs/merit/deployments","created_at":"2017-08-14T16:59:10Z","updated_at":"2018-10-01T14:24:51Z","pushed_at":"2018-10-02T17:43:07Z","git_url":"git://github.com/meritlabs/merit.git","ssh_url":"git@github.com:meritlabs/merit.git","clone_url":"https://github.com/meritlabs/merit.git","svn_url":"https://github.com/meritlabs/merit","homepage":"https://www.merit.me","size":79978,"stargazers_count":113,"watchers_count":113,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":58,"watchers":113,"default_branch":"master"}},"base":{"label":"meritlabs:master","ref":"master","sha":"0feae223a8d3d4f149835ec5fa6cb0b473bee329","user":{"login":"meritlabs","id":30664832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjY0ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/30664832?v=4","gravatar_id":"","url":"https://api.github.com/users/meritlabs","html_url":"https://github.com/meritlabs","followers_url":"https://api.github.com/users/meritlabs/followers","following_url":"https://api.github.com/users/meritlabs/following{/other_user}","gists_url":"https://api.github.com/users/meritlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/meritlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meritlabs/subscriptions","organizations_url":"https://api.github.com/users/meritlabs/orgs","repos_url":"https://api.github.com/users/meritlabs/repos","events_url":"https://api.github.com/users/meritlabs/events{/privacy}","received_events_url":"https://api.github.com/users/meritlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":100290270,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAyOTAyNzA=","name":"merit","full_name":"meritlabs/merit","private":false,"owner":{"login":"meritlabs","id":30664832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjY0ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/30664832?v=4","gravatar_id":"","url":"https://api.github.com/users/meritlabs","html_url":"https://github.com/meritlabs","followers_url":"https://api.github.com/users/meritlabs/followers","following_url":"https://api.github.com/users/meritlabs/following{/other_user}","gists_url":"https://api.github.com/users/meritlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/meritlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meritlabs/subscriptions","organizations_url":"https://api.github.com/users/meritlabs/orgs","repos_url":"https://api.github.com/users/meritlabs/repos","events_url":"https://api.github.com/users/meritlabs/events{/privacy}","received_events_url":"https://api.github.com/users/meritlabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/meritlabs/merit","description":"Merit aims to be the world's most adopted digital currency.","fork":false,"url":"https://api.github.com/repos/meritlabs/merit","forks_url":"https://api.github.com/repos/meritlabs/merit/forks","keys_url":"https://api.github.com/repos/meritlabs/merit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meritlabs/merit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meritlabs/merit/teams","hooks_url":"https://api.github.com/repos/meritlabs/merit/hooks","issue_events_url":"https://api.github.com/repos/meritlabs/merit/issues/events{/number}","events_url":"https://api.github.com/repos/meritlabs/merit/events","assignees_url":"https://api.github.com/repos/meritlabs/merit/assignees{/user}","branches_url":"https://api.github.com/repos/meritlabs/merit/branches{/branch}","tags_url":"https://api.github.com/repos/meritlabs/merit/tags","blobs_url":"https://api.github.com/repos/meritlabs/merit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meritlabs/merit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meritlabs/merit/git/refs{/sha}","trees_url":"https://api.github.com/repos/meritlabs/merit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meritlabs/merit/statuses/{sha}","languages_url":"https://api.github.com/repos/meritlabs/merit/languages","stargazers_url":"https://api.github.com/repos/meritlabs/merit/stargazers","contributors_url":"https://api.github.com/repos/meritlabs/merit/contributors","subscribers_url":"https://api.github.com/repos/meritlabs/merit/subscribers","subscription_url":"https://api.github.com/repos/meritlabs/merit/subscription","commits_url":"https://api.github.com/repos/meritlabs/merit/commits{/sha}","git_commits_url":"https://api.github.com/repos/meritlabs/merit/git/commits{/sha}","comments_url":"https://api.github.com/repos/meritlabs/merit/comments{/number}","issue_comment_url":"https://api.github.com/repos/meritlabs/merit/issues/comments{/number}","contents_url":"https://api.github.com/repos/meritlabs/merit/contents/{+path}","compare_url":"https://api.github.com/repos/meritlabs/merit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meritlabs/merit/merges","archive_url":"https://api.github.com/repos/meritlabs/merit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meritlabs/merit/downloads","issues_url":"https://api.github.com/repos/meritlabs/merit/issues{/number}","pulls_url":"https://api.github.com/repos/meritlabs/merit/pulls{/number}","milestones_url":"https://api.github.com/repos/meritlabs/merit/milestones{/number}","notifications_url":"https://api.github.com/repos/meritlabs/merit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meritlabs/merit/labels{/name}","releases_url":"https://api.github.com/repos/meritlabs/merit/releases{/id}","deployments_url":"https://api.github.com/repos/meritlabs/merit/deployments","created_at":"2017-08-14T16:59:10Z","updated_at":"2018-10-01T14:24:51Z","pushed_at":"2018-10-02T17:43:07Z","git_url":"git://github.com/meritlabs/merit.git","ssh_url":"git@github.com:meritlabs/merit.git","clone_url":"https://github.com/meritlabs/merit.git","svn_url":"https://github.com/meritlabs/merit","homepage":"https://www.merit.me","size":79978,"stargazers_count":113,"watchers_count":113,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":58,"watchers":113,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/400"},"html":{"href":"https://github.com/meritlabs/merit/pull/400"},"issue":{"href":"https://api.github.com/repos/meritlabs/merit/issues/400"},"comments":{"href":"https://api.github.com/repos/meritlabs/merit/issues/400/comments"},"review_comments":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/400/comments"},"review_comment":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meritlabs/merit/pulls/400/commits"},"statuses":{"href":"https://api.github.com/repos/meritlabs/merit/statuses/ce469d1094042120dd9201733c7d83022dc9aa16"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mempko"}}