utils

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAccountHash

func CalculateAccountHash(block *common.AccountStateBlock) common.Hash

func CalculateSnapshotHash

func CalculateSnapshotHash(block *common.SnapshotBlock) common.Hash

func Nil

func Nil(err error)

func ReverseAccountBlocks

func ReverseAccountBlocks(s []*common.AccountStateBlock) []*common.AccountStateBlock

func ReverseSnapshotBlocks

func ReverseSnapshotBlocks(s []*common.SnapshotBlock) []*common.SnapshotBlock

Types

type ForkWall

type ForkWall interface {
	Wait()
	Add(delta int)
	Done()
}

type ViteForkWall

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

func (*ViteForkWall) Lock

func (fw *ViteForkWall) Lock()

func (*ViteForkWall) RLock

func (fw *ViteForkWall) RLock()

func (*ViteForkWall) RUnLock

func (fw *ViteForkWall) RUnLock()

func (*ViteForkWall) UnLock

func (fw *ViteForkWall) UnLock(delta int)

Jump to

Keyboard shortcuts

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