Versions in this module Expand all Collapse all v1 v1.0.1 Jul 31, 2020 v1.0.0 Jul 3, 2020 Changes in this version + const ASY_CRYPTO_P256 + const ASY_CRYPTO_S256 + const ASY_CRYPTO_SM2 + const Ada + const Babbage + const BloomBitsBlocks + const BloomBitsBlocksClient + const BloomConfirms + const BloomTrieFrequency + const Bn256AddGas + const Bn256PairingBaseGas + const Bn256PairingPerPointGas + const Bn256ScalarMulGas + const CHTFrequencyClient + const CHTFrequencyServer + const CallCreateDepth + const CallGas + const CallNewAccountGas + const CallStipend + const CallValueTransferGas + const CopyGas + const Create2Gas + const CreateDataGas + const CreateGas + const Douglas + const EcrecoverGas + const Einstein + const EpochDuration + const Ether + const ExpByteGas + const ExpGas + const Finney + const FuzzModeDelay + const FuzzModeDrop + const GWei + const GasLimitBoundDivisor + const GenesisGasLimit + const HASH_CRYPTO_SHA3 + const HASH_CRYPTO_SM3 + const HelperTrieConfirmations + const HelperTrieProcessConfirmations + const IdentityBaseGas + const IdentityPerWordGas + const ImmutabilityThreshold + const JumpdestGas + const LogDataGas + const LogGas + const LogTopicGas + const MaxCodeSize + const MaximumExtraDataSize + const MemoryGas + const MinGasLimit + const ModExpQuadCoeffDiv + const NetSstoreCleanGas + const NetSstoreClearRefund + const NetSstoreDirtyGas + const NetSstoreInitGas + const NetSstoreNoopGas + const NetSstoreResetClearRefund + const NetSstoreResetRefund + const QuadCoeffDiv + const Ripemd160BaseGas + const Ripemd160PerWordGas + const SY_CRYPTO_AES + const SY_CRYPTO_SM4 + const Sha256BaseGas + const Sha256PerWordGas + const Sha3Gas + const Sha3WordGas + const Shannon + const SloadGas + const SstoreClearGas + const SstoreRefundGas + const SstoreResetGas + const SstoreSetGas + const StackLimit + const SuicideRefundGas + const Szabo + const TierStepGas + const TxDataNonZeroGas + const TxDataZeroGas + const TxGas + const TxGasContractCreation + const VersionMajor + const VersionMeta + const VersionMinor + const VersionPatch + const Wei + var AllMinervaProtocolChanges = &ChainConfig + var DefaultTBFTDir = ".tbft" + var DevnetBootnodes = []string + var DevnetChainConfig = &ChainConfig + var DifficultyBoundDivisor = big.NewInt(2) + var DifficultyPeriod = big.NewInt(144) + var DurationLimit = big.NewInt(600) + var ElectionFruitsThreshold uint64 = 100 + var ElectionPeriodNumber = big.NewInt(180) + var ElectionSwitchoverNumber = big.NewInt(9600) + var EmptyAddress = common.Address + var EmptyHash = common.Hash + var EnablePermission byte = 0 + var FastToFruitSpace = big.NewInt(1500) + var FruitBlockRatio = big.NewInt(600) + var FruitFreshness = big.NewInt(17) + var GasTableConstantinople = GasTable + var GasTableEIP150 = GasTable + var GasTableEIP158 = GasTable + var GasTableHomestead = GasTable + var GasUsed byte = 1 + var GenesisDifficulty = big.NewInt(6000000) + var GoerliGenesisHash = common.HexToHash("0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a") + var GoerliTrustedCheckpoint = &TrustedCheckpoint + var IsCoin byte = 1 + var MainnetBootnodes = []string + var MainnetChainConfig = &ChainConfig + var MainnetGenesisHash = common.HexToHash("0x0c6e644fcbd396f7b235ecef44551c45afd9274e87cd77ec6e9778cf8bfb46fc") + var MainnetSnailGenesisHash = common.HexToHash("0xf82fd9c0c8a53474c9e40e4f1c0583a94609eaf88dae01a5496da459398485c6") + var MainnetTrustedCheckpoint = &TrustedCheckpoint + var MaximumCommitteeNumber = big.NewInt(50) + var MaximumFruits int = 600 + var MinTimeGap = big.NewInt(359) + var MinimumCommitteeNumber = 4 + var MinimumDifficulty = big.NewInt(2000000) + var MinimumFruitDifficulty = big.NewInt(2000) + var MinimumFruits int = 60 + var ProposalCommitteeNumber = 20 + var RinkebyGenesisHash = common.HexToHash("0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177") + var RinkebyTrustedCheckpoint = &TrustedCheckpoint + var SingleNodeBootnodes = []string + var SingleNodeChainConfig = &ChainConfig + var SnailConfirmInterval = big.NewInt(12) + var SnailMaximumRewardInterval = big.NewInt(20) + var SnailRewardInterval = big.NewInt(14) + var TargetGasLimit = GenesisGasLimit + var TestChainConfig = &ChainConfig + var TestnetBootnodes = []string + var TestnetChainConfig = &ChainConfig + var TestnetGenesisHash = common.HexToHash("0x4b82a68ebbf32f2e816754f2b50eda0ae2c0a71dd5f4e0ecd93ccbfb7dba00b8") + var TestnetSnailGenesisHash = common.HexToHash("0x4ab1748c057b744de202d6ebea64e8d3a0b2ec4c19abbc59e8639967b14b7c96") + var TestnetTrustedCheckpoint = &TrustedCheckpoint + var TrustedCheckpoints = map[common.Hash]*TrustedCheckpoint + var Version = func() string { ... }() + var VersionWithMeta = func() string { ... }() + func ArchiveVersion(gitCommit string) string + func GetGasUsed() byte + func GetIsCoin() byte + func IsEnablePermission() bool + func IsGasUsed() bool + func ParseExtraDataFromGenesis(data []byte) + func VersionWithCommit(gitCommit string) string + type BaseConfig struct + FilterPeers bool + Moniker string + func DefaultBaseConfig() BaseConfig + func TestBaseConfig() BaseConfig + type ChainConfig struct + ChainID *big.Int + func (c *ChainConfig) CheckCompatible(newcfg *ChainConfig, height uint64) *ConfigCompatError + func (c *ChainConfig) GasTable(num *big.Int) GasTable + func (c *ChainConfig) Rules(num *big.Int) Rules + func (c *ChainConfig) String() string + func (c *ChainConfig) UnmarshalJSON(input []byte) error + type ConfigCompatError struct + NewConfig *big.Int + RewindTo uint64 + StoredConfig *big.Int + What string + func (err *ConfigCompatError) Error() string + type ConsensusConfig struct + CreateEmptyBlocks bool + CreateEmptyBlocksInterval int + PeerGossipSleepDuration int + PeerQueryMaj23SleepDuration int + RootDir string + SkipTimeoutCommit bool + TimeoutCatchup int + TimeoutCommit int + TimeoutPrecommit int + TimeoutPrecommitDelta int + TimeoutPrevote int + TimeoutPrevoteDelta int + TimeoutPropose int + TimeoutProposeDelta int + WalPath string + func DefaultConsensusConfig() *ConsensusConfig + func TestConsensusConfig() *ConsensusConfig + func (cfg *ConsensusConfig) CatchupTime(t time.Time) time.Time + func (cfg *ConsensusConfig) Commit(t time.Time) time.Time + func (cfg *ConsensusConfig) EmptyBlocksInterval() time.Duration + func (cfg *ConsensusConfig) EmptyBlocksIntervalForPer(times int) time.Duration + func (cfg *ConsensusConfig) PeerGossipSleep() time.Duration + func (cfg *ConsensusConfig) PeerQueryMaj23Sleep() time.Duration + func (cfg *ConsensusConfig) Precommit(round int) time.Duration + func (cfg *ConsensusConfig) Prevote(round int) time.Duration + func (cfg *ConsensusConfig) Propose(round int) time.Duration + func (cfg *ConsensusConfig) SetWalFile(walFile string) + func (cfg *ConsensusConfig) WaitForEmptyBlocks(times int) bool + func (cfg *ConsensusConfig) WaitForTxs() bool + func (cfg *ConsensusConfig) WalFile() string + type FuzzConnConfig struct + MaxDelay time.Duration + Mode int + ProbDropConn float64 + ProbDropRW float64 + ProbSleep float64 + func DefaultFuzzConnConfig() *FuzzConnConfig + type GasTable struct + Balance uint64 + Calls uint64 + CreateBySuicide uint64 + ExpByte uint64 + ExtcodeCopy uint64 + ExtcodeHash uint64 + ExtcodeSize uint64 + SLoad uint64 + Suicide uint64 + type P2PConfig struct + AddrBook string + AddrBookStrict bool + AllowDuplicateIP bool + DialTimeout time.Duration + ExternalAddress string + FlushThrottleTimeout int + HandshakeTimeout time.Duration + ListenAddress1 string + ListenAddress2 string + MaxNumPeers int + MaxPacketMsgPayloadSize int + PrivatePeerIDs string + RecvRate int64 + RootDir string + SendRate int64 + TestDialFail bool + TestFuzz bool + TestFuzzConfig *FuzzConnConfig + UPNP bool + func DefaultP2PConfig() *P2PConfig + func TestP2PConfig() *P2PConfig + func (cfg *P2PConfig) AddrBookFile() string + type Rules struct + ChainID *big.Int + type TbftConfig struct + Consensus *ConsensusConfig + P2P *P2PConfig + func DefaultConfig() *TbftConfig + func TestConfig() *TbftConfig + func (cfg *TbftConfig) SetRoot(root string) *TbftConfig + type TrustedCheckpoint struct + BloomRoot common.Hash + CHTRoot common.Hash + SectionHead common.Hash + SectionIndex uint64 + func (c *TrustedCheckpoint) Empty() bool + func (c *TrustedCheckpoint) Hash() common.Hash + func (c *TrustedCheckpoint) HashEqual(hash common.Hash) bool