Documentation ¶
Index ¶
- func ConstructBlock(blockHashStr string, height uint64) *types.Block
- func ConstructBlocks(height uint64, num int) []*types.Block
- func GetChainMetaFunc() *types.ChainMeta
- func MockConsensusConfig(logger logrus.FieldLogger, ctrl *gomock.Controller, t *testing.T) *common.Config
- func MockMiniBlockSync(ctrl *gomock.Controller) *mock_block_sync.MockSync
- func MockMiniNetwork(ctrl *gomock.Controller, selfAddr string) *mock_network.MockNetwork
- func ResetMockBlockLedger()
- func ResetMockChainMeta()
- func SetMockBlockLedger(block *types.Block, local bool)
- func SetMockChainMeta(chainMeta *types.ChainMeta)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChainMetaFunc ¶
func MockConsensusConfig ¶
func MockConsensusConfig(logger logrus.FieldLogger, ctrl *gomock.Controller, t *testing.T) *common.Config
func MockMiniBlockSync ¶
func MockMiniBlockSync(ctrl *gomock.Controller) *mock_block_sync.MockSync
func MockMiniNetwork ¶
func MockMiniNetwork(ctrl *gomock.Controller, selfAddr string) *mock_network.MockNetwork
func ResetMockBlockLedger ¶
func ResetMockBlockLedger()
func ResetMockChainMeta ¶
func ResetMockChainMeta()
func SetMockBlockLedger ¶
func SetMockChainMeta ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.