Dropped obsolete table and set lower POW target for test (there is no need)
This commit is contained in:
parent
7f4c67f43e
commit
65fdd7d408
@ -39,7 +39,7 @@ public class ProofOfWorkEngineTest {
|
|||||||
private void testPOW(ProofOfWorkEngine engine) {
|
private void testPOW(ProofOfWorkEngine engine) {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
byte[] initialHash = Security.sha512(new byte[]{1, 3, 6, 4});
|
byte[] initialHash = Security.sha512(new byte[]{1, 3, 6, 4});
|
||||||
byte[] target = {0, 0, 0, -1, -1, -1, -1, -1};
|
byte[] target = {0, 0, -1, -1, -1, -1, -1, -1};
|
||||||
|
|
||||||
byte[] nonce = engine.calculateNonce(initialHash, target);
|
byte[] nonce = engine.calculateNonce(initialHash, target);
|
||||||
System.out.println("Calculating nonce took " + (System.currentTimeMillis() - time) + "ms");
|
System.out.println("Calculating nonce took " + (System.currentTimeMillis() - time) + "ms");
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
DROP TABLE Node;
|
Loading…
Reference in New Issue
Block a user