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

Added new details for getstakinginfo error message as suggested in #288 #472

Merged
merged 3 commits into from
May 14, 2019

Conversation

francisjyap
Copy link
Contributor

Added new details for getstakinginfo error message as suggested in #288

Errors messages are :

  • Warning: Wallet is locked. Please enter the wallet passphrase with walletpassphrase first.
  • Warning: We don't appear to have mature coins.

@mxaddict
Copy link
Contributor

mxaddict commented May 8, 2019

utACK, will compile and run locally once I see travis build pass

@aguycalled
Copy link
Member

utACK

src/main.cpp Outdated
@@ -7120,7 +7142,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CTransaction tx;
vRecv >> tx;

LogPrint("net", "Received tx %s peer=%d\n%s\n", tx.GetHash().ToString(), pfrom->id, tx.ToString());
LogPrint("net", "Received tx %s peer=%d\n%s\n", tx.GetHash().ToString(), pfrom->id, tx.ToString());
Copy link
Member

Choose a reason for hiding this comment

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

wrong indent

src/main.h Outdated
@@ -289,6 +289,7 @@ bool IsInitialBlockDownload();
* This function only returns the highest priority warning of the set selected by strFor.
*/
std::string GetWarnings(const std::string& strFor);
std::string GetWarnings(const std::string& strFor, bool verbose);
Copy link
Member

Choose a reason for hiding this comment

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

I'd consider changing the variable name to something more descriptive like fForStaking. The warnings returned when the flag is false are not less verbose than the staking-related.

@aguycalled
Copy link
Member

Built and tested on OSX. Added some comments about minor suggestions

@mxaddict
Copy link
Contributor

mxaddict commented May 8, 2019

Built and tested using Ubuntu 18.04, I agree with the comments from @aguycalled

@francisjyap Go Go Go! 💯

@francisjyap
Copy link
Contributor Author

@aguycalled Changed the variable name as per your suggestion. Also fixed the wrong indent.

@mxaddict
Copy link
Contributor

mxaddict commented May 9, 2019

Built and tested on Ubuntu 18.04 will pass the review once travis build passes.

@aguycalled
Copy link
Member

travis failed because of timeout

Copy link
Contributor

@mxaddict mxaddict left a comment

Choose a reason for hiding this comment

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

Looks good to me, travis build is still failing though, I think it's just a timeout.

I built locally and ran test suite, was working fine.

@mxaddict mxaddict requested a review from aguycalled May 14, 2019 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants