blockchain

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgSender

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

MsgSender provides a method to send a message to the blockchain.

func NewMsgSender

func NewMsgSender(servers []config.LiteServer, channels []chan []byte) (*MsgSender, error)

func (*MsgSender) MsgsBocAddToMempool added in v1.1.0

func (ms *MsgSender) MsgsBocAddToMempool(bocMsgs []string)

func (*MsgSender) SendMessage

func (ms *MsgSender) SendMessage(ctx context.Context, payload []byte) error

SendMessage sends the given payload(a message) to the blockchain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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