Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Feb 12, 2018

This makes PS mockable. And we don't need that much of a precision here anyway.

This makes PS mockable. And we don't need that much of a precision here anyway.
@UdjinM6 UdjinM6 added this to the 12.3 milestone Feb 12, 2018
int nLagTime = fMasternodeMode ? 0 : 10000; // if we're the client, give the server a few extra seconds before resetting.
int nTimeout = (nState == POOL_STATE_SIGNING) ? PRIVATESEND_SIGNING_TIMEOUT : PRIVATESEND_QUEUE_TIMEOUT;
bool fTimeout = GetTimeMillis() - nTimeLastSuccessfulStep >= nTimeout*1000 + nLagTime;
bool fTimeout = GetTime() - nTimeLastSuccessfulStep >= nTimeout;

Choose a reason for hiding this comment

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

Is the removal of + nLagTime also intended here?

Copy link
Author

Choose a reason for hiding this comment

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

yes, cause it's always 0 on masternode side :)

see - int nLagTime = fMasternodeMode ? 0 : 10000; above

Choose a reason for hiding this comment

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

Ah, ok 👍

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

@UdjinM6 UdjinM6 merged commit d7f55d5 into dashpay:develop Feb 12, 2018
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…hpay#1923)

This makes PS mockable. And we don't need that much of a precision here anyway.
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 28, 2019
…hpay#1923)

This makes PS mockable. And we don't need that much of a precision here anyway.
@UdjinM6 UdjinM6 deleted the mockableps 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