sender

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventNameBlockCommit       = "BlockCommit"
	EventNameBlockVerification = "BlockVerification"
)

Variables

View Source
var (
	ZkBNBContractAbi, _ = abi.JSON(strings.NewReader(zkbnb.ZkBNBMetaData.ABI))
)

Functions

func ConvertBlocksForCommitToCommitBlockInfos

func ConvertBlocksForCommitToCommitBlockInfos(oBlocks []*compressedblock.CompressedBlock) (commitBlocks []zkbnb.OldZkBNBCommitBlockInfo, err error)

func ConvertBlocksToVerifyAndExecuteBlockInfos

func ConvertBlocksToVerifyAndExecuteBlockInfos(oBlocks []*block.Block) (verifyAndExecuteBlocks []zkbnb.OldZkBNBVerifyAndExecuteBlockInfo, err error)

Types

type Sender

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

func NewSender

func NewSender(c sconfig.Config) *Sender

func (*Sender) CommitBlocks

func (s *Sender) CommitBlocks() (err error)

func (*Sender) Shutdown

func (s *Sender) Shutdown()

func (*Sender) UpdateSentTxs

func (s *Sender) UpdateSentTxs() (err error)

func (*Sender) VerifyAndExecuteBlocks

func (s *Sender) VerifyAndExecuteBlocks() (err error)

Jump to

Keyboard shortcuts

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