diff --git a/Makefile b/Makefile
index c7e35a9..b6c296b 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ watch:
run:
cd cyberwow && \
- flutter run --pid-file /tmp/flutter.pid
+ flutter run --release --pid-file /tmp/flutter.pid
# clang -target aarch64-linux-android21 cyberwow/native/hello.c -o cyberwow/native/output/hello
c:
diff --git a/README.md b/README.md
index 813bb6b..c7a3e40 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,9 @@
A dumb android pruned full node for Wownero.
+[](https://f-droid.org/en/packages/org.wownero.cyberwow/)
## How to build
diff --git a/cyberwow/lib/config.dart b/cyberwow/lib/config.dart
index 5f37e8c..5881c8c 100644
--- a/cyberwow/lib/config.dart
+++ b/cyberwow/lib/config.dart
@@ -33,6 +33,6 @@ const emuHost = '192.168.10.100';
const host = isEmu ? emuHost : '127.0.0.1';
-const int hashLength = 12;
+const int hashViewBlock = 6;
const stdoutLineBufferSize = 100;
diff --git a/cyberwow/lib/controller/rpc/rpc.dart b/cyberwow/lib/controller/rpc/rpc.dart
index b1e01d9..f3be620 100644
--- a/cyberwow/lib/controller/rpc/rpc.dart
+++ b/cyberwow/lib/controller/rpc/rpc.dart
@@ -69,7 +69,9 @@ Future rpc(final String method, {final String field}) async {
return null;
} else {
final _body = await compute(jsonDecode, response.body);
- final _result = _body['result'] ?? const {};
+ final _result = _body['result'];
+ if (_result == null) return null;
+
final _field = field == null ? _result : _result[field];
return _field;
diff --git a/cyberwow/lib/helper.dart b/cyberwow/lib/helper.dart
index c9b8ea6..ff6265b 100644
--- a/cyberwow/lib/helper.dart
+++ b/cyberwow/lib/helper.dart
@@ -32,7 +32,12 @@ String pretty(dynamic x) {
;
}
-String trimHash(String x) => x.substring(0, config.hashLength) + ' ...';
+String trimHash(String x) =>
+x.substring(0, config.hashViewBlock)
++ '-'
++ x.substring(config.hashViewBlock, config.hashViewBlock * 2)
++ ' ...';
+
Map cleanKey(Map x) {
final _cleaned = x.map
(
diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart
index 17e52c8..bb347d9 100644
--- a/cyberwow/lib/state.dart
+++ b/cyberwow/lib/state.dart
@@ -305,21 +305,23 @@ class SyncedState extends HookedState {
// log.finer('SyncedState: checkSync loop');
height = await rpc.height();
connected = await daemon.isConnected();
- final _getInfo = await rpc.getInfoSimple();
- getInfo = cleanKey(rpcView.getInfoView(_getInfo));
- getInfoCache = pretty(getInfo);
+ getInfo = await rpc.getInfoSimple();
+ final _getInfoView = cleanKey(rpcView.getInfoView(getInfo));
+ getInfoCache = pretty(_getInfoView);
- final List