diff --git a/bfa_client/src/bfa/node.go b/bfa_client/src/bfa/node.go index 53551617a5957baec596ab272c0e60308e6e28d6..063bd6902fffc05add92355fbcd221e5cb077dda 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 {