Class LevelDBBlockStore

  • All Implemented Interfaces:
    BlockStore

    public class LevelDBBlockStore
    extends java.lang.Object
    implements BlockStore
    An SPV block store that writes every header it sees to a LevelDB. This allows for fast lookup of block headers by block hash at the expense of more costly inserts and higher disk usage than the SPVBlockStore. If all you want is a regular wallet you don't need this class: it exists for specialised applications where you need to quickly verify a standalone SPV proof.
    • Constructor Summary

      Constructors 
      Constructor Description
      LevelDBBlockStore​(Context context, java.io.File directory)
      Creates a LevelDB SPV block store using the JNI/C++ version of LevelDB.
      LevelDBBlockStore​(Context context, java.io.File directory, org.iq80.leveldb.DBFactory dbFactory)
      Creates a LevelDB SPV block store using the given factory, which is useful if you want a pure Java version.