broadcast

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

Name returns the name of this service. The RPC method will be prefixed with this service name plus a . (e.g. "broadcast.")

Types

type Service

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

func NewService

func NewService(ctx client.ExtServiceContext, router action.Router, currencies *balance.CurrencySet,
	feePool *fees.Store, domains *ons.DomainStore, govern *governance.Store, delegators *delegation.DelegationStore, evidenceStore *evidence.EvidenceStore, netwkDelegators *netwkDeleg.MasterStore, validators *identity.ValidatorStore,
	logger *log.Logger, trackers *bitcoin.TrackerStore, proposalMaster *governance.ProposalMasterStore, rewardMaster *rewards.RewardMasterStore, extStores data.Router, govUpdate *action.GovernaceUpdateAndValidate,
	stateDB *vm.CommitStateDB,
) *Service

func (*Service) TxAsync

func (svc *Service) TxAsync(req client.BroadcastRequest, reply *client.BroadcastReply) error

TxAsync returns as soon as the finishes. Returns with a hash

func (*Service) TxCommit

func (svc *Service) TxCommit(req client.BroadcastRequest, reply *client.BroadcastReply) error

TxCommit returns when the transaction has been committed to a block.

func (*Service) TxCommitMtSig added in v0.14.3

func (svc *Service) TxCommitMtSig(req client.BroadcastMtSigRequest, reply *client.BroadcastReply) error

TxCommit returns when the transaction has been committed to a block.

func (*Service) TxSync

func (svc *Service) TxSync(req client.BroadcastRequest, reply *client.BroadcastReply) error

TxSync returns when the transaction has been placed inside the mempool

Jump to

Keyboard shortcuts

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