Documentation ¶
Index ¶
- Constants
- func CopyBytes(b []byte) (copiedBytes []byte)
- func HashAlg() hash.Hash
- func HeaderHash(block *types.Block) types.Hash
- func NewTransaction(nonce uint64, to types.Address, amount *big.Int, gasLimit uint64, ...) *types.Transaction
- func SystemContractType(contractType string) types.ContractType
- func TxHash(tx *types.Transaction) types.Hash
- type MsgType
- type NodeType
Constants ¶
View Source
const ( InvalidInt int = 255 BlankString string = "" )
Variables ¶
This section is empty.
Functions ¶
func NewTransaction ¶
func SystemContractType ¶ added in v1.0.0
func SystemContractType(contractType string) types.ContractType
Types ¶
type MsgType ¶
type MsgType uint8
const ( MsgNull MsgType = iota // meaningless msg type MsgBlockCommitSuccess // block commit success MsgBlockCommitFailed // block commit failed MsgBlockVerifyFailed // block verify failed MsgNodeServiceStopped // stop node service MsgRoundRunFailed // round run failed with some reasons MsgToConsensusFailed // failed to consensus MsgChangeMaster // change master MsgOnline // node online MsgBlockWithoutTx // block without transaction MsgWaitTimeOut )
Click to show internal directories.
Click to hide internal directories.