mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-28 11:48:45 +01:00
fix checking for connections
This commit is contained in:
@@ -27,12 +27,9 @@ import '../../config.dart' as config;
|
||||
import '../../logging.dart';
|
||||
|
||||
Future<bool> isConnected() async {
|
||||
final _outPeers = await rpc.outgoingConnectionsCount();
|
||||
final _inPeers = await rpc.incomingConnectionsCount();
|
||||
|
||||
log.finest('outPeers: ${_outPeers}');
|
||||
log.finest('inPeers: ${_inPeers}');
|
||||
return _outPeers + _inPeers > 0;
|
||||
final _connections = await rpc.getConnectionsSimple();
|
||||
log.finer('cyberwow: _connections: ${_connections}');
|
||||
return !_connections.isEmpty;
|
||||
}
|
||||
|
||||
Future<bool> isSynced() async {
|
||||
|
||||
Reference in New Issue
Block a user