mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Removed NodeSSL, added isSSL proprty to Node class.
This commit is contained in:
parent
2322a4a73a
commit
1dd6e78ae9
4 changed files with 4 additions and 15 deletions
|
@ -43,6 +43,8 @@ class Node extends HiveObject with Keyable {
|
|||
@HiveField(4)
|
||||
bool useSSL;
|
||||
|
||||
bool get isSSL => useSSL ?? false;
|
||||
|
||||
@override
|
||||
dynamic get keyIndex {
|
||||
_keyIndex ??= key;
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
import 'package:cake_wallet/entities/node.dart';
|
||||
|
||||
class NodeSSL {
|
||||
NodeSSL(this._node) :
|
||||
_useSSL = _node.useSSL ?? false;
|
||||
|
||||
final Node _node;
|
||||
final bool _useSSL;
|
||||
|
||||
bool get useSSL => _useSSL;
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:cake_wallet/entities/node_ssl.dart';
|
||||
import 'package:cake_wallet/monero/monero_amount_format.dart';
|
||||
import 'package:cake_wallet/monero/monero_transaction_creation_exception.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
@ -144,12 +143,11 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance> with Store {
|
|||
Future<void> connectToNode({@required Node node}) async {
|
||||
try {
|
||||
syncStatus = ConnectingSyncStatus();
|
||||
final nodeSSL = NodeSSL(node);
|
||||
await monero_wallet.setupNode(
|
||||
address: node.uri,
|
||||
login: node.login,
|
||||
password: node.password,
|
||||
useSSL: nodeSSL.useSSL,
|
||||
useSSL: node.isSSL,
|
||||
isLightWallet: false); // FIXME: hardcoded value
|
||||
syncStatus = ConnectedSyncStatus();
|
||||
} catch (e) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'package:mobx/mobx.dart';
|
|||
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
||||
import 'package:cake_wallet/view_model/dashboard/trade_list_item.dart';
|
||||
|
||||
part 'trade_filter_store.g.dart';
|
||||
part'trade_filter_store.g.dart';
|
||||
|
||||
class TradeFilterStore = TradeFilterStoreBase with _$TradeFilterStore;
|
||||
|
||||
|
|
Loading…
Reference in a new issue