Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandidateBlocks ¶
type CandidateBlocks struct {
// contains filtered or unexported fields
}
func NewCandidateBlocks ¶
func NewCandidateBlocks() *CandidateBlocks
func (*CandidateBlocks) CheckFinality ¶
func (q *CandidateBlocks) CheckFinality()
This is to check whether Finality is long enough. If finality is short, panic will happen.
func (*CandidateBlocks) GetHighestBlockHash ¶
func (q *CandidateBlocks) GetHighestBlockHash() (int, string)
func (*CandidateBlocks) PushAndSave ¶
func (q *CandidateBlocks) PushAndSave(block *blockchain.Block, sb SaveBlock) bool
func (*CandidateBlocks) ShowAll ¶
func (q *CandidateBlocks) ShowAll()
type SaveBlock ¶
type SaveBlock interface {
AddBlock(b *blockchain.Block) int64
}
Click to show internal directories.
Click to hide internal directories.