Skip to content
Snippets Groups Projects
Commit b72a3f9d authored by Miguel Montes's avatar Miguel Montes
Browse files

Cambiada estructura para obtener status de sealers

Agregada la dificultad del sellado de un bloque.
parent 2e0ec2a2
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment