diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index a7ce79336..b2036c3f6 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -417,8 +417,7 @@ Future checkCurrentNodes( } if (currentHavenNodeServer == null) { - final nodes = await loadDefaultHavenNodes(); - final node = nodes.first; + final node = Node(uri: havenDefaultNodeUri, type: WalletType.haven); await nodeSource.add(node); await sharedPreferences.setInt( PreferencesKey.currentHavenNodeIdKey, node.key as int); diff --git a/lib/view_model/node_list/node_list_view_model.dart b/lib/view_model/node_list/node_list_view_model.dart index ca34be290..a50720d9d 100644 --- a/lib/view_model/node_list/node_list_view_model.dart +++ b/lib/view_model/node_list/node_list_view_model.dart @@ -50,6 +50,9 @@ abstract class NodeListViewModelBase with Store { case WalletType.litecoin: node = getLitecoinDefaultElectrumServer(nodes: _nodeSource)!; break; + case WalletType.haven: + node = getHavenDefaultNode(nodes: _nodeSource)!; + break; default: throw Exception('Unexpected wallet type: ${wallet.type}'); }