From b72a3f9d72564e567d9647c7026fd0d7db3575a5 Mon Sep 17 00:00:00 2001
From: Miguel Montes <miguel.montes@unc.edu.ar>
Date: Sat, 24 Nov 2018 12:41:32 -0300
Subject: [PATCH] Cambiada estructura para obtener status de sealers

Agregada la dificultad del sellado de un bloque.
---
 bfa_client/src/bfa/node.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bfa_client/src/bfa/node.go b/bfa_client/src/bfa/node.go
index 5355161..063bd69 100644
--- a/bfa_client/src/bfa/node.go
+++ b/bfa_client/src/bfa/node.go
@@ -45,8 +45,9 @@ type SealerInfo struct {
 }
 
 type SealerStatus struct {
-	LastBlock int64  `json:"lastBlockSigned"`
-	Time      uint64 `json:"timestamp"`
+	LastBlock  int64  `json:"lastBlockSigned"`
+	Time       uint64 `json:"timestamp"`
+	Difficulty uint64 `json:"difficulty"`
 }
 
 const (
@@ -224,6 +225,7 @@ func (node *Node) SealersStatus(blockNumber int64) (status map[string]*SealerSta
 		if status[signer].LastBlock == 0 {
 			status[signer].LastBlock = block.Number.Int64()
 			status[signer].Time = block.Time.Uint64()
+			status[signer].Difficulty = block.Difficulty.Uint64()
 			notSeen--
 		}
 		if blockNumber == until {
-- 
GitLab