From 65fdd7d408e31df8044249e0a083bf486e0c0dfb Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Fri, 3 Jul 2015 09:04:35 +0200 Subject: [PATCH] Dropped obsolete table and set lower POW target for test (there is no need) --- .../java/ch/dissem/bitmessage/ports/ProofOfWorkEngineTest.java | 2 +- .../src/main/resources/db/migration/V3.0__Drop_node_table.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 repositories/src/main/resources/db/migration/V3.0__Drop_node_table.sql diff --git a/domain/src/test/java/ch/dissem/bitmessage/ports/ProofOfWorkEngineTest.java b/domain/src/test/java/ch/dissem/bitmessage/ports/ProofOfWorkEngineTest.java index 1d25229..aed5722 100644 --- a/domain/src/test/java/ch/dissem/bitmessage/ports/ProofOfWorkEngineTest.java +++ b/domain/src/test/java/ch/dissem/bitmessage/ports/ProofOfWorkEngineTest.java @@ -39,7 +39,7 @@ public class ProofOfWorkEngineTest { private void testPOW(ProofOfWorkEngine engine) { long time = System.currentTimeMillis(); 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); System.out.println("Calculating nonce took " + (System.currentTimeMillis() - time) + "ms"); diff --git a/repositories/src/main/resources/db/migration/V3.0__Drop_node_table.sql b/repositories/src/main/resources/db/migration/V3.0__Drop_node_table.sql new file mode 100644 index 0000000..7b43b4f --- /dev/null +++ b/repositories/src/main/resources/db/migration/V3.0__Drop_node_table.sql @@ -0,0 +1 @@ +DROP TABLE Node; \ No newline at end of file