Versions in this module Expand all Collapse all v0 v0.9.3 Jul 19, 2022 v0.9.2 Jul 14, 2022 Changes in this version + var DefaultBlockTranslation BlockThresholdTranslation = func(aw float64) confirmation.State + var DefaultConflictTranslation ConflictThresholdTranslation = func(conflictID utxo.TransactionID, aw float64) confirmation.State + type BlockThresholdTranslation func(aw float64) confirmation.State + type ConflictThresholdTranslation func(conflictID utxo.TransactionID, aw float64) confirmation.State + type Gadget struct + func NewSimpleFinalityGadget(t *tangle.Tangle, opts ...Option) *Gadget + func (s *Gadget) Events() *tangle.ConfirmationEvents + func (s *Gadget) FirstUnconfirmedMarkerIndex(sequenceID markers.SequenceID) (index markers.Index) + func (s *Gadget) HandleConflict(conflictID utxo.TransactionID, aw float64) (err error) + func (s *Gadget) HandleMarker(marker markers.Marker, aw float64) (err error) + func (s *Gadget) IsBlockConfirmed(blkID tangle.BlockID) (confirmed bool) + func (s *Gadget) IsConflictConfirmed(conflictID utxo.TransactionID) (confirmed bool) + func (s *Gadget) IsMarkerConfirmed(marker markers.Marker) (confirmed bool) + func (s *Gadget) IsTransactionConfirmed(transactionID utxo.TransactionID) (confirmed bool) + type Option func(*Options) + func WithBlockThresholdTranslation(f BlockThresholdTranslation) Option + func WithConflictThresholdTranslation(f ConflictThresholdTranslation) Option + type Options struct + BlockTransFunc BlockThresholdTranslation + ConflictTransFunc ConflictThresholdTranslation