mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
fix inject error
This commit is contained in:
parent
ba98228fb8
commit
284f405844
2 changed files with 9 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
package io.bisq.core.btc;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.protobuf.Message;
|
||||
import io.bisq.common.app.Version;
|
||||
import io.bisq.common.persistance.Persistable;
|
||||
|
@ -46,7 +47,7 @@ public final class AddressEntryList implements Persistable {
|
|||
@Getter
|
||||
private List<AddressEntry> addressEntryList = new ArrayList<>();
|
||||
|
||||
//@Inject
|
||||
@Inject
|
||||
public AddressEntryList(Storage<AddressEntryList> storage) {
|
||||
this.storage = storage;
|
||||
}
|
||||
|
|
|
@ -91,7 +91,13 @@ public class SeedNodeMain extends BisqExecutable {
|
|||
final BisqEnvironment environment = getBisqEnvironment(options);
|
||||
SeedNode.setEnvironment(environment);
|
||||
|
||||
UserThread.execute(() -> seedNode = new SeedNode());
|
||||
UserThread.execute(() -> {
|
||||
try {
|
||||
seedNode = new SeedNode();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
|
||||
Thread.UncaughtExceptionHandler handler = (thread, throwable) -> {
|
||||
if (throwable.getCause() != null && throwable.getCause().getCause() != null &&
|
||||
|
|
Loading…
Add table
Reference in a new issue