mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-15 11:45:49 +00:00
Allow nonce to be computed for "next" timestamp if mempow is enabled in settings.
This commit is contained in:
parent
501f66ab00
commit
a10e669554
@ -464,7 +464,7 @@ public class OnlineAccountsManager {
|
|||||||
|
|
||||||
// 'next' timestamp (prioritize this as it's the most important, if mempow active)
|
// 'next' timestamp (prioritize this as it's the most important, if mempow active)
|
||||||
final long nextOnlineAccountsTimestamp = toOnlineAccountTimestamp(now) + getOnlineTimestampModulus();
|
final long nextOnlineAccountsTimestamp = toOnlineAccountTimestamp(now) + getOnlineTimestampModulus();
|
||||||
if (nextOnlineAccountsTimestamp >= BlockChain.getInstance().getOnlineAccountsMemoryPoWTimestamp()) {
|
if (isMemoryPoWActive(now)) {
|
||||||
boolean success = computeOurAccountsForTimestamp(nextOnlineAccountsTimestamp);
|
boolean success = computeOurAccountsForTimestamp(nextOnlineAccountsTimestamp);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
// We didn't compute the required nonce value(s), and so can't proceed until they have been retried
|
// We didn't compute the required nonce value(s), and so can't proceed until they have been retried
|
||||||
|
Loading…
x
Reference in New Issue
Block a user