Documentation ¶
Index ¶
Constants ¶
View Source
const ( GasLimitBoundDivisor uint64 = 1024 // The bound divisor of the gas limit, used in update calculations. MinGasLimit uint64 = 1e10 // Minimum the gas limit may ever be. MaxGasLimit uint64 = 4e10 // Maximum the gas limit may ever be. GenesisGasLimit uint64 = 2e10 // Gas limit of the Genesis block. TxGas uint64 = 2000000 // Per transaction not creating a contract. NOTE: Not payable on data of calls between transactions. TxGasContractCreation uint64 = 5000000 // Per transaction that creates a contract. NOTE: Not payable on data of calls between transactions. TxGasContractCreateData uint64 = 20000 // TxDataZeroGas uint64 = 400 // Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions. TxDataNonZeroGas uint64 = 6800 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions. MaxCodeSize = 256 * 1024 * 1024 // Maximum bytecode to permit for a contract BloomByteSize uint64 = 512 BloomBitsSize = BloomByteSize * 8 // 4096, Must be divisible by 8 ConfirmHeightDistance uint64 = 6 StakeRegisterHeightDistance uint64 = 6 PackerKeyConfirmDistance uint64 = 6 RoundsPerSecond = 10 )
View Source
const ( MinerKeyContractAddr = "0x0000000000000000000000000000000000000001" PackerKeyContractAddr = "0x0000000000000000000000000000000000000002" TransferRestrictionContractAddr = "0x0000000000000000000000000000000000000003" MinerKeyContractTable = "minerkey" PackerKeyContractInfoTable = "packerkey" PackerKeyContractSizeTable = "packersize" TransferWhiteListTable = "whiteaddr" TransferBlackListTable = "blackaddr" )
View Source
const ( VersionMajor = 0 // Major version component of the current release VersionMinor = 2 // Minor version component of the current release VersionPatch = 2 // Patch version component of the current release )
Variables ¶
View Source
var (
TargetGasLimit = GenesisGasLimit // The artificial target
)
View Source
var Version = func() string { return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) }()
Version holds the textual version string.
Functions ¶
func VersionFull ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.