Skip to content

Commit

Permalink
added Hashrate to consensus.Engine interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hubchub committed Jul 28, 2023
1 parent 5325692 commit c5ef2c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ type Engine interface {
// consensus rules that happen at finalization (e.g. block rewards).
FinalizeAndAssemble(chain ChainHeaderReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, etxs []*types.Transaction, manifest types.BlockManifest, receipts []*types.Receipt) (*types.Block, error)

// Hashrate returns the measured rate of the search invocations
// per second over the last minute.
Hashrate() float64

// Seal generates a new sealing request for the given input block and pushes
// the result into the given channel.
//
Expand Down

0 comments on commit c5ef2c2

Please sign in to comment.