|
|
|
@ -109,8 +109,6 @@ type Computed struct { |
|
|
|
|
BlocksLeftInEpoch uint64 `json:"-"` |
|
|
|
|
Percentage numeric.Dec `json:"current-epoch-signing-percentage"` |
|
|
|
|
IsBelowThreshold bool `json:"-"` |
|
|
|
|
Epoch uint64 `json:"epoch"` |
|
|
|
|
Block uint64 `json:"block"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c Computed) String() string { |
|
|
|
@ -123,10 +121,8 @@ func NewComputed( |
|
|
|
|
signed, toSign *big.Int, |
|
|
|
|
blocksLeft uint64, |
|
|
|
|
percent numeric.Dec, |
|
|
|
|
isBelowNow bool, |
|
|
|
|
epoch uint64, |
|
|
|
|
block uint64) *Computed { |
|
|
|
|
return &Computed{signed, toSign, blocksLeft, percent, isBelowNow, epoch, block} |
|
|
|
|
isBelowNow bool) *Computed { |
|
|
|
|
return &Computed{signed, toSign, blocksLeft, percent, isBelowNow} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// NewEmptyStats ..
|
|
|
|
@ -143,6 +139,8 @@ func NewEmptyStats() *ValidatorStats { |
|
|
|
|
// whatever current epoch is
|
|
|
|
|
type CurrentEpochPerformance struct { |
|
|
|
|
CurrentSigningPercentage Computed `json:"current-epoch-signing-percent"` |
|
|
|
|
Epoch uint64 `json:"epoch"` |
|
|
|
|
Block uint64 `json:"block"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ValidatorRPCEnhanced contains extra information for RPC consumer
|
|
|
|
|