org.bitcoinj.store.PostgresFullPrunedBlockStore Java Examples

The following examples show how to use org.bitcoinj.store.PostgresFullPrunedBlockStore. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PostgresFullPrunedBlockChainTest.java    From bcm-android with GNU General Public License v3.0 5 votes vote down vote up
@Override
public FullPrunedBlockStore createStore(NetworkParameters params, int blockCount)
        throws BlockStoreException {
    if (useSchema) {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD, DB_SCHEMA);
    } else {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD);
    }
}
 
Example #2
Source File: PostgresFullPrunedBlockChainTest.java    From green_android with GNU General Public License v3.0 5 votes vote down vote up
@Override
public FullPrunedBlockStore createStore(NetworkParameters params, int blockCount)
        throws BlockStoreException {
    if(useSchema) {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD, DB_SCHEMA);
    }
    else {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD);
    }
}
 
Example #3
Source File: PostgresFullPrunedBlockChainTest.java    From GreenBits with GNU General Public License v3.0 5 votes vote down vote up
@Override
public FullPrunedBlockStore createStore(NetworkParameters params, int blockCount)
        throws BlockStoreException {
    if(useSchema) {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD, DB_SCHEMA);
    }
    else {
        return new PostgresFullPrunedBlockStore(params, blockCount, DB_HOSTNAME, DB_NAME, DB_USERNAME, DB_PASSWORD);
    }
}
 
Example #4
Source File: PostgresFullPrunedBlockChainTest.java    From bcm-android with GNU General Public License v3.0 4 votes vote down vote up
@After
public void tearDown() throws Exception {
    ((PostgresFullPrunedBlockStore) store).deleteStore();
}
 
Example #5
Source File: PostgresFullPrunedBlockChainTest.java    From bcm-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void resetStore(FullPrunedBlockStore store) throws BlockStoreException {
    ((PostgresFullPrunedBlockStore) store).resetStore();
}
 
Example #6
Source File: PostgresFullPrunedBlockChainTest.java    From green_android with GNU General Public License v3.0 4 votes vote down vote up
@After
public void tearDown() throws Exception {
    ((PostgresFullPrunedBlockStore)store).deleteStore();
}
 
Example #7
Source File: PostgresFullPrunedBlockChainTest.java    From green_android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void resetStore(FullPrunedBlockStore store) throws BlockStoreException {
    ((PostgresFullPrunedBlockStore)store).resetStore();
}
 
Example #8
Source File: PostgresFullPrunedBlockChainTest.java    From GreenBits with GNU General Public License v3.0 4 votes vote down vote up
@After
public void tearDown() throws Exception {
    ((PostgresFullPrunedBlockStore)store).deleteStore();
}
 
Example #9
Source File: PostgresFullPrunedBlockChainTest.java    From GreenBits with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void resetStore(FullPrunedBlockStore store) throws BlockStoreException {
    ((PostgresFullPrunedBlockStore)store).resetStore();
}