gov

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GovCtrler

type GovCtrler struct {
	ctrlertypes.GovParams
	// contains filtered or unexported fields
}

func NewGovCtrler

func NewGovCtrler(config *cfg.Config, logger log.Logger) (*GovCtrler, error)

func (*GovCtrler) BeginBlock

func (ctrler *GovCtrler) BeginBlock(blockCtx *ctrlertypes.BlockContext) ([]abcitypes.Event, xerrors.XError)

func (*GovCtrler) Close

func (ctrler *GovCtrler) Close() xerrors.XError

func (*GovCtrler) Commit

func (ctrler *GovCtrler) Commit() ([]byte, int64, xerrors.XError)

func (*GovCtrler) DoPunish

func (ctrler *GovCtrler) DoPunish(evi *abcitypes.Evidence) (int64, xerrors.XError)

DoPunish slashes the voting power of the byzantine validator(voter). If the voter has already voted, it will be canceled. This function is called from BeatozApp::BeginBlock.

func (*GovCtrler) EndBlock

func (ctrler *GovCtrler) EndBlock(ctx *ctrlertypes.BlockContext) ([]abcitypes.Event, xerrors.XError)

func (*GovCtrler) ExecuteTrx

func (ctrler *GovCtrler) ExecuteTrx(ctx *ctrlertypes.TrxContext) xerrors.XError

func (*GovCtrler) GetGovParams

func (ctrler *GovCtrler) GetGovParams() ctrlertypes.GovParams

func (*GovCtrler) InitLedger

func (ctrler *GovCtrler) InitLedger(req interface{}) xerrors.XError

func (*GovCtrler) Query

func (ctrler *GovCtrler) Query(req abcitypes.RequestQuery) ([]byte, xerrors.XError)

func (*GovCtrler) ReadAllProposals

func (ctrler *GovCtrler) ReadAllProposals() ([]*proposal.GovProposal, xerrors.XError)

func (*GovCtrler) ReadProposal

func (ctrler *GovCtrler) ReadProposal(txhash abytes.HexBytes) (*proposal.GovProposal, xerrors.XError)

func (*GovCtrler) ValidateTrx

func (ctrler *GovCtrler) ValidateTrx(ctx *ctrlertypes.TrxContext) xerrors.XError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL