Created an improved JdbcNodeRegistry and removed MemoryNodeRegistry, as it doesn't properly work with the way nodes are handled and disseminated in the new PyBitmessage client. The new one should work a lot more stable.
This commit is contained in:
@ -20,7 +20,6 @@ import ch.dissem.bitmessage.BitmessageContext;
|
||||
import ch.dissem.bitmessage.cryptography.bc.BouncyCryptography;
|
||||
import ch.dissem.bitmessage.entity.valueobject.NetworkAddress;
|
||||
import ch.dissem.bitmessage.networking.nio.NioNetworkHandler;
|
||||
import ch.dissem.bitmessage.ports.MemoryNodeRegistry;
|
||||
import ch.dissem.bitmessage.ports.NodeRegistry;
|
||||
import ch.dissem.bitmessage.repository.*;
|
||||
import ch.dissem.bitmessage.wif.WifExporter;
|
||||
@ -82,7 +81,7 @@ public class Main {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
ctxBuilder.nodeRegistry(new MemoryNodeRegistry());
|
||||
ctxBuilder.nodeRegistry(new JdbcNodeRegistry(jdbcConfig));
|
||||
}
|
||||
|
||||
if (options.exportWIF != null || options.importWIF != null) {
|
||||
|
Reference in New Issue
Block a user