mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPoolInterface

type BlockPoolInterface struct {
	mock.Mock
}

BlockPoolInterface is an autogenerated mock type for the BlockPoolInterface type

func (*BlockPoolInterface) BlockRequestCh

func (_m *BlockPoolInterface) BlockRequestCh() chan core.BlockRequestPars

BlockRequestCh provides a mock function with given fields:

func (*BlockPoolInterface) GetBlockchain

func (_m *BlockPoolInterface) GetBlockchain() *core.Blockchain

GetBlockchain provides a mock function with given fields:

func (*BlockPoolInterface) GetSyncState

func (_m *BlockPoolInterface) GetSyncState() bool

GetSyncState provides a mock function with given fields:

func (*BlockPoolInterface) Push

func (_m *BlockPoolInterface) Push(block *core.Block, pid peer.ID)

Push provides a mock function with given fields: block, pid

func (*BlockPoolInterface) SetBlockchain

func (_m *BlockPoolInterface) SetBlockchain(bc *core.Blockchain)

SetBlockchain provides a mock function with given fields: bc

func (*BlockPoolInterface) SetSyncState

func (_m *BlockPoolInterface) SetSyncState(_a0 bool)

SetSyncState provides a mock function with given fields: _a0

func (*BlockPoolInterface) VerifyTransactions

func (_m *BlockPoolInterface) VerifyTransactions(utxo core.UTXOIndex, forkBlks []*core.Block) bool

VerifyTransactions provides a mock function with given fields: utxo, forkBlks

type Consensus

type Consensus struct {
	mock.Mock
}

Consensus is an autogenerated mock type for the Consensus type

func (*Consensus) AddProducer

func (_m *Consensus) AddProducer(_a0 string) error

AddProducer provides a mock function with given fields: _a0

func (*Consensus) FinishedMining

func (_m *Consensus) FinishedMining() bool

FinishedMining provides a mock function with given fields:

func (*Consensus) GetProducers

func (_m *Consensus) GetProducers() []string

GetProducers provides a mock function with given fields:

func (*Consensus) SetKey

func (_m *Consensus) SetKey(_a0 string)

SetKey provides a mock function with given fields: _a0

func (*Consensus) SetTargetBit

func (_m *Consensus) SetTargetBit(_a0 int)

SetTargetBit provides a mock function with given fields: _a0

func (*Consensus) Setup

func (_m *Consensus) Setup(_a0 core.NetService, _a1 string)

Setup provides a mock function with given fields: _a0, _a1

func (*Consensus) Start

func (_m *Consensus) Start()

Start provides a mock function with given fields:

func (*Consensus) StartNewBlockMinting

func (_m *Consensus) StartNewBlockMinting()

StartNewBlockMinting provides a mock function with given fields:

func (*Consensus) Stop

func (_m *Consensus) Stop()

Stop provides a mock function with given fields:

func (*Consensus) Validate

func (_m *Consensus) Validate(block *core.Block) bool

Validate provides a mock function with given fields: block

func (*Consensus) VerifyBlock

func (_m *Consensus) VerifyBlock(block *core.Block) bool

VerifyBlock provides a mock function with given fields: block

type NetService

type NetService struct {
	mock.Mock
}

NetService is an autogenerated mock type for the NetService type

func (*NetService) BroadcastBlock

func (_m *NetService) BroadcastBlock(block *core.Block) error

BroadcastBlock provides a mock function with given fields: block

func (*NetService) GetBlockchain

func (_m *NetService) GetBlockchain() *core.Blockchain

GetBlockchain provides a mock function with given fields:

func (*NetService) GetPeerID

func (_m *NetService) GetPeerID() peer.ID

GetPeerID provides a mock function with given fields:

Jump to

Keyboard shortcuts

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