forked from Qortal/qortal
Move non-production apps from main to test
+ Move test apps from org.qora.test to org.qora.test.apps ("app" being a class with a main() method)
This commit is contained in:
parent
47dcff0beb
commit
47d0274a5e
@ -2,7 +2,7 @@ package org.qora.crypto;
|
||||
|
||||
import com.google.common.primitives.Bytes;
|
||||
|
||||
public class CiyamMemoryPoW {
|
||||
public class MemoryPoW {
|
||||
|
||||
private static final int WORK_BUFFER_LENGTH = 4 * 1024 * 1024;
|
||||
private static final int WORK_BUFFER_LENGTH_MASK = WORK_BUFFER_LENGTH - 1;
|
@ -1,13 +1,13 @@
|
||||
package org.qora.test;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.qora.crypto.CiyamMemoryPoW;
|
||||
import org.qora.crypto.MemoryPoW;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class CiyamMemoryPoWTests {
|
||||
public class MemoryPoWTests {
|
||||
|
||||
@Test
|
||||
public void testCompute() {
|
||||
@ -21,7 +21,7 @@ public class CiyamMemoryPoWTests {
|
||||
int difficulty = 1;
|
||||
|
||||
long startTime = System.currentTimeMillis();
|
||||
Integer nonce = CiyamMemoryPoW.compute(data, start, range, difficulty);
|
||||
Integer nonce = MemoryPoW.compute(data, start, range, difficulty);
|
||||
long finishTime = System.currentTimeMillis();
|
||||
|
||||
System.out.println(String.format("Memory-hard PoW took %dms", finishTime - startTime));
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.UnknownHostException;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.security.Security;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.security.Security;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.security.SecureRandom;
|
||||
import java.security.Security;
|
@ -1,4 +1,4 @@
|
||||
package org.qora.test;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
import org.qora.crypto.BrokenMD160;
|
||||
|
||||
import com.google.common.hash.HashCode;
|
@ -1,4 +1,4 @@
|
||||
package org.qora;
|
||||
package org.qora.test.apps;
|
||||
import java.security.Security;
|
||||
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
Loading…
Reference in New Issue
Block a user