Skip to content

R4R: Fix issue663 #671

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

Merged
merged 5 commits into from
Nov 20, 2018
Merged

R4R: Fix issue663 #671

merged 5 commits into from
Nov 20, 2018

Conversation

trevorfu
Copy link
Contributor

@trevorfu trevorfu commented Nov 20, 2018

#663

my testcases the following:

➜ ~ iriscli gov query-params --module=gov1
ERROR: ERROR:
Codespace: 6
Code: 113
Message: "The GovParameter of the module gov1 is not existed"

➜ ~ iriscli gov query-params --module=gov1 --key=Gov/govTallyingProcedure
ERROR: ERROR:
Codespace: 6
Code: 113
Message: "The GovParameter of the module gov1 is not existed"

➜ ~ iriscli gov query-params --module=gov1 --key=Gov/govTallyingProcedure1
ERROR: ERROR:
Codespace: 6
Code: 113
Message: "The GovParameter of the module gov1 is not existed"

➜ ~ iriscli gov query-params --key=Gov/govTallyingProcedure1
ERROR: ERROR:
Codespace: 6
Code: 111
Message: "Gov/govTallyingProcedure1 is not found"

➜ ~ iriscli gov query-params --module=gov --key=Gov/govTallyingProcedure1
ERROR: ERROR:
Codespace: 6
Code: 111
Message: "Gov/govTallyingProcedure1 is not found"

➜ ~ iriscli gov query-params --module=gov
[
"Gov/govDepositProcedure",
"Gov/govTallyingProcedure",
"Gov/govVotingProcedure"
]

➜ ~ iriscli gov query-params --key=Gov/govTallyingProcedure
{"key":"Gov/govTallyingProcedure","value":"{"threshold":"0.5000000000","veto":"0.3340000000","participation":"0.6670000000"}","op":""}

➜ ~ iriscli gov query-params --module=gov --key=Gov/govTallyingProcedure
{"key":"Gov/govTallyingProcedure","value":"{"threshold":"0.5000000000","veto":"0.3340000000","participation":"0.6670000000"}","op":""}

@trevorfu trevorfu changed the title Fix issue663 R4R: Fix issue663 Nov 20, 2018
@MrXJC
Copy link
Contributor

MrXJC commented Nov 20, 2018

Excellent!

keys = append(keys, string(kv.Key))
}
if keyStr != "" {
iparam.RegisterGovParamMapping(&govparams.DepositProcedureParameter,
Copy link
Contributor

Choose a reason for hiding this comment

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

You could add the service GovParameter. It will be better.

}
}

// Check --key parameter if the --module parameter is empty.
if keyStr != "" {
iparam.RegisterGovParamMapping(&govparams.DepositProcedureParameter,
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment is same as the above.

@wukongcheng wukongcheng merged commit bf3ec51 into irisnet:develop Nov 20, 2018
@trevorfu trevorfu deleted the fix_issue663 branch November 21, 2018 07:55
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.

3 participants