Skip to content

Commit

Permalink
dbft: drop outdated Service interface
Browse files Browse the repository at this point in the history
 * it's missing one method
 * it doesn't solve any problem, there is exactly one DBFT that implements it
   and it doesn't provide anything but the dBFT service

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Feb 13, 2024
1 parent 05c007a commit c486807
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dbft.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ type (
cache cache[H, A]
recovering bool
}
// Service is an interface for dBFT consensus.
Service[H crypto.Hash, A crypto.Address] interface {
Start(uint64)
OnTransaction(block.Transaction[H])
OnReceive(payload.ConsensusPayload[H, A])
OnTimeout(timer.HV)
}
)

// New returns new DBFT instance with specified H and A generic parameters
Expand Down

0 comments on commit c486807

Please sign in to comment.