Documentation
¶
Index ¶
- type BlockPoolInterface
- func (_m *BlockPoolInterface) BlockRequestCh() chan core.BlockRequestPars
- func (_m *BlockPoolInterface) GetBlockchain() *core.Blockchain
- func (_m *BlockPoolInterface) GetSyncState() bool
- func (_m *BlockPoolInterface) Push(block *core.Block, pid peer.ID)
- func (_m *BlockPoolInterface) SetBlockchain(bc *core.Blockchain)
- func (_m *BlockPoolInterface) SetSyncState(_a0 bool)
- func (_m *BlockPoolInterface) VerifyTransactions(utxo core.UTXOIndex, forkBlks []*core.Block) bool
- type Consensus
- func (_m *Consensus) AddProducer(_a0 string) error
- func (_m *Consensus) FinishedMining() bool
- func (_m *Consensus) GetProducers() []string
- func (_m *Consensus) SetKey(_a0 string)
- func (_m *Consensus) SetTargetBit(_a0 int)
- func (_m *Consensus) Setup(_a0 core.NetService, _a1 string)
- func (_m *Consensus) Start()
- func (_m *Consensus) StartNewBlockMinting()
- func (_m *Consensus) Stop()
- func (_m *Consensus) Validate(block *core.Block) bool
- func (_m *Consensus) VerifyBlock(block *core.Block) bool
- type NetService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockPoolInterface ¶
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 ¶
VerifyTransactions provides a mock function with given fields: utxo, forkBlks
type Consensus ¶
Consensus is an autogenerated mock type for the Consensus type
func (*Consensus) AddProducer ¶
AddProducer provides a mock function with given fields: _a0
func (*Consensus) FinishedMining ¶
FinishedMining provides a mock function with given fields:
func (*Consensus) GetProducers ¶
GetProducers provides a mock function with given fields:
func (*Consensus) SetTargetBit ¶
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:
type NetService ¶
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: