H2FullPrunedBlockStore: Fix issue #1260: the h2 prefix and params are prepended twice using this constructor. Only prepend when calling the super constructor.

This commit is contained in:
dcw312 2016-05-17 21:22:34 -05:00 committed by Andreas Schildbach
parent c37fe88952
commit 6230d01e7b

View File

@ -101,7 +101,7 @@ public class H2FullPrunedBlockStore extends DatabaseFullPrunedBlockStore {
*/
public H2FullPrunedBlockStore(NetworkParameters params, String dbName, int fullStoreDepth)
throws BlockStoreException {
this(params, DATABASE_CONNECTION_URL_PREFIX + dbName + ";create=true;LOCK_TIMEOUT=60000;DB_CLOSE_ON_EXIT=FALSE", null, null, fullStoreDepth);
this(params, dbName, null, null, fullStoreDepth);
}
/**