1) Re-factored PostgresFullPrunedBlockStore and H2FullPrunedBlockStore into a generic DatabaseFullPrunedBlockStore class.

2) H2FullPrunedBlockStore now supports calculateBalanceForAddress() method.
3) Created an additional store for MySQL (MySQLFullPrunedBlockStore) and unit test.
4) Fixed unit test PostgresFullPrunedBlockStoreTest, second time execution was failing due to not clearing down the tables correctly.
5) Added methods getOpenTransactionOutputs() & deleteStore() to base class DatabaseFullPrunedBlockStore.
This commit is contained in:
Kalpesh Parmar
2014-10-26 17:36:09 +00:00
committed by Mike Hearn
parent 580a67c0b7
commit fbf62614b4
8 changed files with 1680 additions and 1492 deletions

View File

@@ -441,15 +441,20 @@
<artifactId>scrypt</artifactId>
<version>1.4.0</version>
</dependency>
<!-- Add in to test/use Postgres blockstore -->
<!--
<!-- Note this is an optional dependency: Postgres blockstore -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901.jdbc4</version>
<optional>true</optional>
</dependency>
<!-- Note this is an optional dependency: MySQL blockstore -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.33</version>
<optional>true</optional>
</dependency>
-->
<dependency>
<groupId>org.bitcoinj</groupId>
<artifactId>orchid</artifactId>