Versions in this module Expand all Collapse all v0 v0.4.2 Mar 6, 2024 v0.4.1 Feb 23, 2024 Changes in this version + const TaurusTestnetName type Config + func TaurusConfig() *Config type ConsensusConfig + func TaurusConsensusConfig() *ConsensusConfig type GenesisConfig + func TaurusGenesisConfig() *GenesisConfig type JsonRPC + QueryLimit QueryLimit + type QueryLimit struct + GetLogsBlockRangeLimit uint64 v0.4.0 Dec 10, 2023 Changes in this version + const AccountKeyFileName + const AppName + const AriesTestnetName + const CfgFileName + const ConsensusStorageTypeMinifile + const ConsensusStorageTypeRosedb + const ConsensusTypeRbft + const ConsensusTypeSolo + const ConsensusTypeSoloDev + const DefaultTxMaxSize + const ExecTypeDev + const ExecTypeNative + const KVStorageCacheSize + const KVStorageSync + const KVStorageTypeLeveldb + const KVStorageTypePebble + const LogsDirName + const P2PPipeBroadcastGossip + const P2PPipeBroadcastSimple + const P2PSecurityNoise + const P2PSecurityTLS + const PprofModeCpu + const PprofModeMem + const PprofTypeHTTP + const PprofTypeRuntime + var BuildBranch = "" + var BuildCommit = "" + var BuildDate = "" + var BuildNet = "" + var BuildVersion = "0.0.0" + var BuildVersionSecret = "Hangzhou" + var DefaultAdminNames = []string + var DefaultNodeAddrs = []string + var DefaultNodeKeys = []string + var DefaultNodeNames = []string + var GoVersion = runtime.Version() + var Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH) + var SupportMultiNode = make(map[string]bool) + var TestNetConfigBuilderMap = map[string]func() *Config + var TestNetConsensusConfigBuilderMap = map[string]func() *ConsensusConfig + var TestNetGenesisConfigBuilderMap = map[string]func() *GenesisConfig + func CheckWritable(dir string) error + func GenerateKey() (*ecdsa.PrivateKey, error) + func GenesisEpochInfo(epochEnable bool) *rbft.EpochInfo + func GetStoragePath(repoRoot string, subPath ...string) string + func KeyString(key *ecdsa.PrivateKey) string + func KeyToNodeID(sk *ecdsa.PrivateKey) (string, error) + func Libp2pKeyFromECDSAKey(sk *ecdsa.PrivateKey) (libp2pcrypto.PrivKey, error) + func LoadAccountKey(repoRoot string) (*ecdsa.PrivateKey, error) + func LoadP2PKey(repoRoot string) (*ecdsa.PrivateKey, error) + func LoadRepoRootFromEnv(repoRoot string) (string, error) + func MarshalConfig(config any) (string, error) + func ParseKey(keyBytes []byte) (*ecdsa.PrivateKey, error) + func ReadKey(keyPath string) (*ecdsa.PrivateKey, error) + func Register(consensusType string, isSupported bool) + func RemovePID(rootPath string) error + func StringToTimeDurationHookFunc() mapstructure.DecodeHookFunc + func WriteKey(keyPath string, key *ecdsa.PrivateKey) error + func WritePid(rootPath string) error + type Access struct + EnableWhiteList bool + type Admin struct + Address string + Name string + Weight uint64 + type Config struct + Access Access + Consensus Consensus + Executor Executor + JsonRPC JsonRPC + Ledger Ledger + Log Log + Monitor Monitor + P2P P2P + PProf PProf + Port Port + Storage Storage + Sync Sync + Ulimit uint64 + func AriesConfig() *Config + func DefaultConfig() *Config + func LoadConfig(repoRoot string) (*Config, error) + func (c *Config) Bytes() ([]byte, error) + type Consensus struct + StorageType string + Type string + type ConsensusConfig struct + Limit ReceiveMsgLimiter + Rbft RBFT + Solo Solo + TimedGenBlock TimedGenBlock + TxCache TxCache + TxPool TxPool + func AriesConsensusConfig() *ConsensusConfig + func DefaultConsensusConfig() *ConsensusConfig + func LoadConsensusConfig(repoRoot string) (*ConsensusConfig, error) + type Duration time.Duration + func (d *Duration) MarshalText() (text []byte, err error) + func (d *Duration) String() string + func (d *Duration) ToDuration() time.Duration + func (d *Duration) UnmarshalText(b []byte) error + type EVM struct + DisableMaxCodeSizeLimit bool + type Executor struct + DisableRollback bool + EVM EVM + Type string + type GenesisConfig struct + Accounts []string + Admins []*Admin + Balance string + ChainID uint64 + EpochInfo *rbft.EpochInfo + InitWhiteListProviders []string + NodeNames []*NodeName + func AriesGenesisConfig() *GenesisConfig + func DefaultGenesisConfig(epochEnable bool) *GenesisConfig + func LoadGenesisConfig(repoRoot string) (*GenesisConfig, error) + type JLimiter struct + Capacity int64 + Enable bool + Interval Duration + Quantum int64 + type JsonRPC struct + EVMTimeout Duration + GasCap uint64 + ReadLimiter JLimiter + RejectTxsIfConsensusAbnormal bool + WriteLimiter JLimiter + type Ledger struct + ChainLedgerCacheSize int + StateLedgerAccountCacheSize int + StateLedgerCacheMegabytesLimit int + type Log struct + DisableTimestamp bool + EnableColor bool + EnableCompress bool + Filename string + Level string + MaxAge uint + MaxSize uint + Module LogModule + ReportCaller bool + RotationTime Duration + type LogModule struct + API string + APP string + Access string + BlockSync string + Consensus string + CoreAPI string + Epoch string + Executor string + Finance string + Governance string + P2P string + Profile string + Storage string + TxPool string + type Monitor struct + Enable bool + EnableExpensive bool + type NodeName struct + ID uint64 + Name string + func GenesisNodeNameInfo(epochEnable bool) []*NodeName + type P2P struct + BootstrapNodeAddresses []string + Pipe P2PPipe + ReadTimeout Duration + Security string + SendTimeout Duration + type P2PPipe struct + BroadcastType string + ConnectTimeout Duration + FindPeerTimeout Duration + Gossipsub P2PPipeGossipsub + ReceiveMsgCacheSize int + SimpleBroadcast P2PPipeSimpleBroadcast + UnicastReadTimeout Duration + UnicastSendRetryBaseTime Duration + UnicastSendRetryNumber int + type P2PPipeGossipsub struct + DisableCustomMsgIDFn bool + EnableMetrics bool + PeerOutboundBufferSize int + SeenMessagesTTL Duration + SubBufferSize int + ValidateBufferSize int + type P2PPipeSimpleBroadcast struct + WorkerCacheSize int + WorkerConcurrencyLimit int + type PProf struct + Duration Duration + Enable bool + Mode string + PType string + type Port struct + JsonRpc int64 + Monitor int64 + P2P int64 + PProf int64 + WebSocket int64 + type RBFT struct + CommittedBlockCacheNumber uint64 + EnableMetrics bool + EnableMultiPipes bool + Timeout RBFTTimeout + type RBFTTimeout struct + BatchTimeout Duration + CleanViewChange Duration + FetchCheckpoint Duration + FetchView Duration + NewView Duration + NullRequest Duration + Request Duration + ResendViewChange Duration + SyncState Duration + SyncStateRestart Duration + type ReceiveMsgLimiter struct + Burst int64 + Enable bool + Limit int64 + type Repo struct + AccountAddress string + AccountKey *ecdsa.PrivateKey + Config *Config + ConsensusConfig *ConsensusConfig + EpochInfo *rbft.EpochInfo + GenesisConfig *GenesisConfig + P2PID string + P2PKey *ecdsa.PrivateKey + ReadonlyMode bool + RepoRoot string + func Default(repoRoot string) (*Repo, error) + func DefaultWithNodeIndex(repoRoot string, nodeIndex int, epochEnable bool) (*Repo, error) + func Load(repoRoot string) (*Repo, error) + func (r *Repo) AccountKeySign(data []byte) ([]byte, error) + func (r *Repo) Flush() error + func (r *Repo) PrintNodeInfo() + type Solo struct + BatchTimeout Duration + CheckpointPeriod uint64 + type Storage struct + KvCacheSize int + KvType string + Sync bool + type Sync struct + ConcurrencyLimit uint64 + RequesterRetryTimeout Duration + TimeoutCountLimit uint64 + type TimedGenBlock struct + NoTxBatchTimeout Duration + type TxCache struct + SetSize int + SetTimeout Duration + type TxPool struct + CleanEmptyAccountTime Duration + PoolSize uint64 + ToleranceNonceGap uint64 + ToleranceRemoveTime Duration + ToleranceTime Duration v0.0.0-release-2024-04-01-rc1 Apr 2, 2024