Back to MVStore Storage Backend

This commit is contained in:
ChronosX88 2019-04-02 15:10:27 +04:00
parent 94643207b7
commit 95c87b9eb0

View File

@ -85,17 +85,13 @@ public class MainLogic implements IMainLogicContract {
new Thread(() -> {
try {
StorageMapDB storageDisk = new StorageMapDB(peerID, context.getFilesDir(), new RSASignatureFactory());
peerDHT = new PeerBuilderDHT(
new PeerBuilder(peerID)
.ports(7243)
.start()
)
//.storage(new StorageMVStore(peerID, context.getFilesDir()))
.storage(storageDisk)
.storage(new StorageMVStore(peerID, context.getFilesDir()))
.start();
JVMShutdownHook jvmShutdownHook = new JVMShutdownHook(storageDisk);
Runtime.getRuntime().addShutdownHook(jvmShutdownHook);
try {
String bootstrapIP = this.preferences.getString("bootstrapAddress", null);
if(bootstrapIP == null) {