Documentation
¶
Index ¶
Constants ¶
View Source
const ( BlockInterval uint64 = 10 // time interval between two consecutive blocks. TxGas uint64 = 5000 ClauseGas uint64 = params.TxGas - TxGas ClauseGasContractCreation uint64 = params.TxGasContractCreation - TxGas MinGasLimit uint64 = 1000 * 1000 InitialGasLimit uint64 = 10 * 1000 * 1000 // InitialGasLimit gas limit value int genesis block. GasLimitBoundDivisor uint64 = 1024 // from ethereum GetBalanceGas uint64 = 400 //EIP158 gas table SloadGas uint64 = 200 // EIP158 gas table SstoreSetGas uint64 = params.SstoreSetGas SstoreResetGas uint64 = params.SstoreResetGas MaxTxWorkDelay uint32 = 30 // (unit: block) if tx delay exceeds this value, no energy can be exchanged. MaxBlockProposers uint64 = 101 TolerableBlockPackingTime = 500 * time.Millisecond // the indicator to adjust target block gas limit MaxStateHistory = 65535 // max guaranteed state history allowed to be accessed in EVM, presented in block number )
Constants of block chain.
View Source
const ( // AddressLength length of address in bytes. AddressLength = common.AddressLength )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
Address address of account.
func BytesToAddress ¶
BytesToAddress converts bytes slice into address. If b is larger than address legnth, b will be cropped (from the left). If b is smaller than address length, b will be extended (from the left).
func MustParseAddress ¶
MustParseAddress convert string presented address into Address type, panic on error.
func ParseAddress ¶
ParseAddress convert string presented address into Address type.
type Bytes32 ¶
type Bytes32 [32]byte
Bytes32 array of 32 bytes.
func MustParseBytes32 ¶
MustParseBytes32 convert string presented into Bytes32 type, panic on error.
func ParseBytes32 ¶
ParseBytes32 convert string presented into Bytes32 type
type StorageSize ¶
type StorageSize int64
StorageSize describes storage size in bytes.
func (StorageSize) String ¶
func (ss StorageSize) String() string
Click to show internal directories.
Click to hide internal directories.