Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenResult ¶
type GenResult struct { VMBlock *vm_db.VmAccountBlock IsRetry bool Err error }
GenResult represents the result of a block being validated by vm.
type Generator ¶
type Generator interface { GenerateWithBlock(block *ledger.AccountBlock, fromBlock *ledger.AccountBlock) (*GenResult, error) GenerateWithMessage(message *IncomingMessage, producer *types.Address, signFunc SignFunc) (*GenResult, error) GenerateWithOnRoad(sendBlock *ledger.AccountBlock, producer *types.Address, signFunc SignFunc, difficulty *big.Int) (*GenResult, error) GetVMDB() vm_db.VmDb }
Click to show internal directories.
Click to hide internal directories.