forked from Qortal/qortal
Removed onlineAccountsMemPoWEnabled setting as it's no longer needed.
This commit is contained in:
parent
e45ad37eb5
commit
b37aa749c6
@ -600,7 +600,7 @@ public class OnlineAccountsManager {
|
|||||||
// MemoryPoW
|
// MemoryPoW
|
||||||
|
|
||||||
private boolean isMemoryPoWActive(Long timestamp) {
|
private boolean isMemoryPoWActive(Long timestamp) {
|
||||||
if (timestamp >= BlockChain.getInstance().getOnlineAccountsMemoryPoWTimestamp() || Settings.getInstance().isOnlineAccountsMemPoWEnabled()) {
|
if (timestamp >= BlockChain.getInstance().getOnlineAccountsMemoryPoWTimestamp()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -617,7 +617,7 @@ public class OnlineAccountsManager {
|
|||||||
|
|
||||||
private Integer computeMemoryPoW(byte[] bytes, byte[] publicKey, long onlineAccountsTimestamp) throws TimeoutException {
|
private Integer computeMemoryPoW(byte[] bytes, byte[] publicKey, long onlineAccountsTimestamp) throws TimeoutException {
|
||||||
if (!isMemoryPoWActive(NTP.getTime())) {
|
if (!isMemoryPoWActive(NTP.getTime())) {
|
||||||
LOGGER.info("Mempow start timestamp not yet reached, and onlineAccountsMemPoWEnabled not enabled in settings");
|
LOGGER.info("Mempow start timestamp not yet reached");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,10 +290,6 @@ public class Settings {
|
|||||||
/** Additional offset added to values returned by NTP.getTime() */
|
/** Additional offset added to values returned by NTP.getTime() */
|
||||||
private Long testNtpOffset = null;
|
private Long testNtpOffset = null;
|
||||||
|
|
||||||
// Online accounts
|
|
||||||
|
|
||||||
/** Whether to opt-in to mempow computations for online accounts, ahead of general release */
|
|
||||||
private boolean onlineAccountsMemPoWEnabled = false;
|
|
||||||
|
|
||||||
|
|
||||||
/* Foreign chains */
|
/* Foreign chains */
|
||||||
@ -800,10 +796,6 @@ public class Settings {
|
|||||||
return this.testNtpOffset;
|
return this.testNtpOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOnlineAccountsMemPoWEnabled() {
|
|
||||||
return this.onlineAccountsMemPoWEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getRepositoryBackupInterval() {
|
public long getRepositoryBackupInterval() {
|
||||||
return this.repositoryBackupInterval;
|
return this.repositoryBackupInterval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user