stats

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	NrMiners int

	TotalL1Blocks uint64

	MaxRollupsPerBlock uint32
	NrEmptyBlocks      int

	NoL1Reorgs  map[gethcommon.Address]int
	NoL2Recalcs map[gethcommon.Address]int
	NoL2Blocks  map[int]uint64

	TotalDepositedAmount           *big.Int
	TotalWithdrawalRequestedAmount *big.Int
	RollupWithMoreRecentProofCount uint64
	NrTransferTransactions         int
	NrNativeTransferTransactions   int
	// contains filtered or unexported fields
}

Stats - collects information during the simulation. It can be checked programmatically.

func NewStats

func NewStats(nrMiners int) *Stats

func (*Stats) Deposit

func (s *Stats) Deposit(v *big.Int)

func (*Stats) L1Reorg

func (s *Stats) L1Reorg(id gethcommon.Address)

func (*Stats) NativeTransfer added in v0.21.0

func (s *Stats) NativeTransfer()

func (*Stats) NewBlock

func (s *Stats) NewBlock(b *types.Block)

func (*Stats) NewRollup

func (s *Stats) NewRollup(nodeIdx int)

func (*Stats) Transfer

func (s *Stats) Transfer()

func (*Stats) Withdrawal

func (s *Stats) Withdrawal(v *big.Int)

Jump to

Keyboard shortcuts

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