util

package
v0.14.9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: AGPL-3.0 Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockReceiptValidator added in v0.14.0

func MockReceiptValidator() module.ReceiptValidator

MockReceiptValidator returns a ReceiptValidator that accepts all receipts without performing any integrity checks.

func MockSealValidator added in v0.14.0

func MockSealValidator(sealsDB storage.Seals) module.SealValidator

MockSealValidator returns a SealValidator that accepts all seals without performing any integrity checks, returns first seal in block as valid one

func RunWithBootstrapState added in v0.14.0

func RunWithBootstrapState(t testing.TB, stateRoot *pbadger.StateRoot, f func(*badger.DB, *pbadger.State))

func RunWithFollowerProtocolState added in v0.14.0

func RunWithFollowerProtocolState(t testing.TB, stateRoot *pbadger.StateRoot, f func(*badger.DB, *pbadger.FollowerState))

func RunWithFullProtocolState added in v0.14.0

func RunWithFullProtocolState(t testing.TB, stateRoot *pbadger.StateRoot, f func(*badger.DB, *pbadger.MutableState))

func RunWithFullProtocolStateAndConsumer added in v0.14.0

func RunWithFullProtocolStateAndConsumer(t testing.TB, stateRoot *pbadger.StateRoot, consumer protocol.Consumer, f func(*badger.DB, *pbadger.MutableState))

func RunWithFullProtocolStateAndValidator added in v0.14.0

func RunWithFullProtocolStateAndValidator(t testing.TB, stateRoot *pbadger.StateRoot, validator module.ReceiptValidator, f func(*badger.DB, *pbadger.MutableState))

Types

This section is empty.

Jump to

Keyboard shortcuts

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