ledgermgmttest

package
v0.0.0-...-b544036 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSnapshotWithGenesisBlock

func CreateSnapshotWithGenesisBlock(t *testing.T, testDir string, ledgerID string, configTxProcessor ledger.CustomTxProcessor) string

CreateSnapshotWithGenesisBlock creates a snapshot with only genesis block for the given ledgerID and returns the snapshot directory. It is intended to be used for creating a ledger by snapshot for testing purpose.

func NewInitializer

func NewInitializer(testLedgerDir string) *ledgermgmt.Initializer

NewInitializer returns an instance of ledgermgmt Initializer with minimum fields populated so as not to cause a failure during construction of LedgerMgr. This is intended to be used for creating an instance of LedgerMgr for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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