gcmd

package
v0.0.0-...-63a5211 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Libp2pKeyFromInsecurePassphrase

func Libp2pKeyFromInsecurePassphrase(prefix, insecurePassphrase string) (libp2pcrypto.PrivKey, error)

func SignerFromInsecurePassphrase

func SignerFromInsecurePassphrase(prefix, insecurePassphrase string) (gcrypto.Ed25519Signer, error)

Types

type EchoApp

type EchoApp struct {
	// contains filtered or unexported fields
}

func NewEchoApp

func NewEchoApp(
	ctx context.Context,
	log *slog.Logger,
	initChainRequests <-chan tmdriver.InitChainRequest,
	finBlockRequests <-chan tmdriver.FinalizeBlockRequest,
) *EchoApp

func (*EchoApp) Wait

func (a *EchoApp) Wait()

type EchoConsensusStrategy

type EchoConsensusStrategy struct {
	// contains filtered or unexported fields
}

func NewEchoConsensusStrategy

func NewEchoConsensusStrategy(log *slog.Logger, pubKey gcrypto.PubKey) *EchoConsensusStrategy

func (*EchoConsensusStrategy) ChooseProposedBlock

func (s *EchoConsensusStrategy) ChooseProposedBlock(ctx context.Context, phs []tmconsensus.ProposedHeader) (string, error)

func (*EchoConsensusStrategy) ConsiderProposedBlocks

func (*EchoConsensusStrategy) DecidePrecommit

func (s *EchoConsensusStrategy) DecidePrecommit(ctx context.Context, vs tmconsensus.VoteSummary) (string, error)

func (*EchoConsensusStrategy) EnterRound

func (s *EchoConsensusStrategy) EnterRound(ctx context.Context, rv tmconsensus.RoundView, proposalOut chan<- tmconsensus.Proposal) error

Jump to

Keyboard shortcuts

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