From 7626fa33f4af98fede47162eb279aab59f634ef8 Mon Sep 17 00:00:00 2001 From: fuwa Date: Thu, 28 Nov 2019 02:50:46 +0800 Subject: [PATCH] trim top block hash --- cyberwow/lib/controller/rpc/rpc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberwow/lib/controller/rpc/rpc.dart b/cyberwow/lib/controller/rpc/rpc.dart index 3fa412a..9cef207 100644 --- a/cyberwow/lib/controller/rpc/rpc.dart +++ b/cyberwow/lib/controller/rpc/rpc.dart @@ -97,7 +97,7 @@ Future> getInfoSimple() async { ( (k, v) { if (k == 'top_block_hash') { - return MapEntry(k, v.substring(0, config.hashLength) + '...'); + return MapEntry(k, trimHash(v)); } else { return MapEntry(k, v); }