Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoB ¶
type PoB struct {
// contains filtered or unexported fields
}
PoB is a struct that handles the consensus logic.
func NewPoB ¶
func NewPoB(account *account.Account, baseVariable global.BaseVariable, blockCache blockcache.BlockCache, txPool txpool.TxPool, p2pService p2p.Service) *PoB
NewPoB init a new PoB.
Click to show internal directories.
Click to hide internal directories.