Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement getcurrentvotes JSONRPC call #1164

Merged
merged 6 commits into from
Nov 22, 2016
Merged

Conversation

nmarley
Copy link

@nmarley nmarley commented Nov 22, 2016

Needed to get only current (tallying) votes for a given governance object.

Copy link

@tgflynn tgflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit ec59862 into dashpay:v0.12.1.x Nov 22, 2016
@nmarley nmarley deleted the getvotes branch November 22, 2016 19:39
@wuhuaping
Copy link

root@iZ2zeeeup1v8x4tt6rzmr6Z:/var/www/html/mpos/cronjobs# ./findblock.php -f
PHP Fatal error: Uncaught Exception: RPC call did not return 200: HTTP error: 500 - JSON Response: [-8] Invalid blockhash in /var/www/html/mpos/include/lib/jsonRPCClient.php:120
Stack trace:
#0 /var/www/html/mpos/cronjobs/findblock.php(35): jsonRPCClient->__call('listsinceblock', Array)
#1 {main}
thrown in /var/www/html/mpos/include/lib/jsonRPCClient.php on line 120

root@iZ2zeeeup1v8x4tt6rzmr6Z:~# dash-cli getblockhash
error code: -1
error message:
getblockhash index

Returns hash of block in best-block-chain at index provided.

Arguments:

  1. index (numeric, required) The block index

Result:
"hash" (string) The block hash

Examples:

dash-cli getblockhash 1000
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/

I used the old version of the wallet link, not wrong
But the new version of the wallet link is wrong

Thank you
How to solve this problem?
@UdjinM6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants