Documentation ¶
Index ¶
- Constants
- Variables
- func BuildGenesisBlock(defaultBookkeeper []keypair.PublicKey, genesisConfig *config.GenesisConfig) (*types.Block, error)
- func NewInitNodeManagerTransaction(paramBytes []byte) (*types.Transaction, error)
- func NewInvokeTransaction(invokeCode []byte, nonce uint32) *types.Transaction
Constants ¶
View Source
const ( BlockVersion uint32 = 0 GenesisNonce uint64 = 2083236893 INIT_CONFIG = "initConfig" )
Variables ¶
View Source
var GenBlockTime = (config.DEFAULT_GEN_BLOCK_TIME * time.Second)
View Source
var GenesisBookkeepers []keypair.PublicKey
Functions ¶
func BuildGenesisBlock ¶
func BuildGenesisBlock(defaultBookkeeper []keypair.PublicKey, genesisConfig *config.GenesisConfig) (*types.Block, error)
BuildGenesisBlock returns the genesis block with default consensus bookkeeper list
func NewInitNodeManagerTransaction ¶ added in v1.2.0
func NewInitNodeManagerTransaction( paramBytes []byte, ) (*types.Transaction, error)
func NewInvokeTransaction ¶ added in v1.2.0
func NewInvokeTransaction(invokeCode []byte, nonce uint32) *types.Transaction
NewInvokeTransaction return smart contract invoke transaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.