Skip to content

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 12, 2018

Similar to #1929 , trying to make it easier to follow

@UdjinM6 UdjinM6 added this to the 12.3 milestone Feb 12, 2018
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

utACK

connman.PushMessage(pfrom, msgMaker.Make(NetMsgType::SYNCSTATUSCOUNT, MASTERNODE_SYNC_GOVOBJ_VOTE, nVoteCount));
LogPrintf("CGovernanceManager::Sync -- sent %d objects and %d votes to peer=%d\n", nObjCount, nVoteCount, pfrom->id);
CNetMsgMaker msgMaker(pnode->GetSendVersion());
connman.PushMessage(pnode, msgMaker.Make(NetMsgType::SYNCSTATUSCOUNT, MASTERNODE_SYNC_GOVOBJ, nObjCount));

Choose a reason for hiding this comment

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

Not really related to this PR, but is the order in which SYNCSTATUSCOUNT and INV(MSG_GOVERNANCE_OBJECT) arrive in any way important? As I understand the code, there is no order guaranteed because inventories are sent/flushed in SendMessages, while SYNCSTATUSCOUNT is sent here immediately.

Copy link
Author

@UdjinM6 UdjinM6 Feb 12, 2018

Choose a reason for hiding this comment

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

SYNCSTATUSCOUNT is for informational purposes only, there is no special logic tied to it, and yes, it doesn't matter in which order they arrive.

@UdjinM6 UdjinM6 merged commit f35b597 into dashpay:develop Feb 12, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 28, 2019
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Mar 2, 2019
@UdjinM6 UdjinM6 deleted the refgovsync branch November 26, 2020 11:38
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