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.
Click to show internal directories.
Click to hide internal directories.