org.bitcoinj.kits.LevelDBWalletAppKit Maven / Gradle / Ivy
package org.bitcoinj.kits;
import org.bitcoinj.core.Context;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.store.BlockStore;
import org.bitcoinj.store.BlockStoreException;
import org.bitcoinj.store.LevelDBBlockStore;
import org.bitcoinj.store.SPVBlockStore;
import java.io.File;
/**
* Created by Eric on 2/23/2016.
*/
public class LevelDBWalletAppKit extends WalletAppKit {
public LevelDBWalletAppKit(NetworkParameters params, File directory, String filePrefix) {
super(params, directory, filePrefix);
}
/**
* Override this to use a {@link BlockStore} that isn't the default of {@link SPVBlockStore}.
*/
protected BlockStore provideBlockStore(File file) throws BlockStoreException {
return new LevelDBBlockStore(context, file);
}
}