Skip to content

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

Merged
aguycalled merged 3 commits into
navcoin:masterfrom
digitaloten:patch-1
May 14, 2019
Merged

Added new details for getstakinginfo error message as suggested in #288#472
aguycalled merged 3 commits into
navcoin:masterfrom
digitaloten:patch-1

Conversation

@digitaloten
Copy link
Copy Markdown
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
Copy Markdown
Contributor

mxaddict commented May 8, 2019

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

@aguycalled
Copy link
Copy Markdown
Member

utACK

Comment thread src/main.cpp Outdated
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

wrong indent

Comment thread src/main.h Outdated
* 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
Copy Markdown
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
Copy Markdown
Member

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

@mxaddict
Copy link
Copy Markdown
Contributor

mxaddict commented May 8, 2019

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

@francisjyap Go Go Go! 💯

@digitaloten
Copy link
Copy Markdown
Contributor Author

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

@mxaddict
Copy link
Copy Markdown
Contributor

mxaddict commented May 9, 2019

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

@aguycalled
Copy link
Copy Markdown
Member

travis failed because of timeout

Copy link
Copy Markdown
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.

3 participants