From bca717c9bdc7d2ae5e9f75cf4d48409edb545edb Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@nic.ar>
Date: Tue, 11 Jun 2019 17:30:44 -0300
Subject: [PATCH] localstate: agregando network_version (chainId)

---
 bin/localstate.pl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/localstate.pl b/bin/localstate.pl
index 8c2c01c..d8e1f3d 100755
--- a/bin/localstate.pl
+++ b/bin/localstate.pl
@@ -148,6 +148,11 @@ sub     rpc
     return  $json->{'result'};
 }
 
+my	$netversion		=   rpc( $libbfa, 'net_version' );
+if ( $netversion )
+{
+	printf "Running on network number %s\n", $netversion;
+}
 ### syncing ?
 my      $syncing                =   rpc( $libbfa, 'eth_syncing' );
 if ( $syncing )
-- 
GitLab