mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-22 15:22:18 +00:00
Back to MVStore Storage Backend
This commit is contained in:
parent
94643207b7
commit
95c87b9eb0
@ -85,17 +85,13 @@ public class MainLogic implements IMainLogicContract {
|
|||||||
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
StorageMapDB storageDisk = new StorageMapDB(peerID, context.getFilesDir(), new RSASignatureFactory());
|
|
||||||
peerDHT = new PeerBuilderDHT(
|
peerDHT = new PeerBuilderDHT(
|
||||||
new PeerBuilder(peerID)
|
new PeerBuilder(peerID)
|
||||||
.ports(7243)
|
.ports(7243)
|
||||||
.start()
|
.start()
|
||||||
)
|
)
|
||||||
//.storage(new StorageMVStore(peerID, context.getFilesDir()))
|
.storage(new StorageMVStore(peerID, context.getFilesDir()))
|
||||||
.storage(storageDisk)
|
|
||||||
.start();
|
.start();
|
||||||
JVMShutdownHook jvmShutdownHook = new JVMShutdownHook(storageDisk);
|
|
||||||
Runtime.getRuntime().addShutdownHook(jvmShutdownHook);
|
|
||||||
try {
|
try {
|
||||||
String bootstrapIP = this.preferences.getString("bootstrapAddress", null);
|
String bootstrapIP = this.preferences.getString("bootstrapAddress", null);
|
||||||
if(bootstrapIP == null) {
|
if(bootstrapIP == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user