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

safe version of GetMasternodeByRank #1595

Merged
merged 2 commits into from
Aug 31, 2017

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Aug 29, 2017

No description provided.

@UdjinM6 UdjinM6 added this to the 12.2 milestone Aug 29, 2017
@UdjinM6 UdjinM6 mentioned this pull request Aug 29, 2017
@UdjinM6 UdjinM6 force-pushed the safeGetMasternodeByRank branch from 9b67be7 to 85f000a Compare August 29, 2017 18:29

if(pmn != NULL){
//printf("RelayThroughNode %s\n", pmn->addr.ToString().c_str());
if(!mnodeman.GetMasternodeByRank(nRank, nBlockHeight, MIN_PRIVATESEND_PEER_PROTO_VERSION, false, mnInfo)){
Copy link

@codablock codablock Aug 29, 2017

Choose a reason for hiding this comment

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

Is the negation desired here? mnInfo will be uninitialized in case of GetMasternodeByRank returning false.

@UdjinM6
Copy link
Author

UdjinM6 commented Aug 29, 2017

I have no idea what I was thinking about... fixed! :)

@UdjinM6 UdjinM6 merged commit 9028a22 into dashpay:v0.12.2.x Aug 31, 2017
@UdjinM6 UdjinM6 deleted the safeGetMasternodeByRank branch January 31, 2019 19:43
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.

2 participants