Documentation ¶
Index ¶
- Variables
- func GetAccountBlackList(st StateDB) ([]common.Address, error)
- func GetBlkCalc(st StateDB) (string, error)
- func GetBlkRewardCfg(st StateDB) (*mc.BlkRewardCfg, error)
- func GetBlockProduceBlackList(st StateDB) (*mc.BlockProduceSlashBlackList, error)
- func GetBlockProduceSlashCfg(st StateDB) (*mc.BlockProduceSlashCfg, error)
- func GetBlockProduceStats(st StateDB) (*mc.BlockProduceStats, error)
- func GetBlockProduceStatsStatus(st StateDB) (*mc.BlockProduceSlashStatsStatus, error)
- func GetBlockSuperAccounts(st StateDB) ([]common.Address, error)
- func GetBroadcastAccounts(st StateDB) ([]common.Address, error)
- func GetBroadcastInterval(st StateDB) (*mc.BCIntervalInfo, error)
- func GetBroadcastIntervalByVersion(st StateDB, version string) (*mc.BCIntervalInfo, error)
- func GetBroadcastTxs(st StateDB) (common.BroadTxSlice, error)
- func GetElectBlackList(st StateDB) ([]common.Address, error)
- func GetElectConfigInfo(st StateDB) (*mc.ElectConfigInfo, error)
- func GetElectGenTime(st StateDB) (*mc.ElectGenTimeStruct, error)
- func GetElectGraph(st StateDB) (*mc.ElectGraph, error)
- func GetElectMinerNum(st StateDB) (*mc.ElectMinerNumStruct, error)
- func GetElectOnlineState(st StateDB) (*mc.ElectOnlineStatus, error)
- func GetElectWhiteList(st StateDB) ([]common.Address, error)
- func GetElectWhiteListSwitcher(st StateDB) (bool, error)
- func GetFoundationAccount(st StateDB) (common.Address, error)
- func GetInnerMinerAccounts(st StateDB) ([]common.Address, error)
- func GetInterestCalc(st StateDB) (string, error)
- func GetInterestCalcNum(st StateDB) (uint64, error)
- func GetInterestCfg(st StateDB) (*mc.InterestCfg, error)
- func GetInterestPayNum(st StateDB) (uint64, error)
- func GetLeaderConfig(st StateDB) (*mc.LeaderConfig, error)
- func GetLotteryAccount(st StateDB) (*mc.LotteryFrom, error)
- func GetLotteryCalc(st StateDB) (string, error)
- func GetLotteryCfg(st StateDB) (*mc.LotteryCfg, error)
- func GetLotteryNum(st StateDB) (uint64, error)
- func GetMinHash(st StateDB) (*mc.RandomInfoStruct, error)
- func GetMultiCoinSuperAccounts(st StateDB) ([]common.Address, error)
- func GetPreBroadcastRoot(st StateDB) (*mc.PreBroadStateRoot, error)
- func GetPreMinerBlkReward(st StateDB) (*mc.MinerOutReward, error)
- func GetPreMinerTxsReward(st StateDB) (*mc.MinerOutReward, error)
- func GetSlashCalc(st StateDB) (string, error)
- func GetSlashCfg(st StateDB) (*mc.SlashCfg, error)
- func GetSlashNum(st StateDB) (uint64, error)
- func GetSubChainSuperAccounts(st StateDB) ([]common.Address, error)
- func GetSuperBlockCfg(st StateDB) (*mc.SuperBlkCfg, error)
- func GetTopologyGraph(st StateDB) (*mc.TopologyGraph, error)
- func GetTopologyGraphByVersion(st StateDB, version string) (*mc.TopologyGraph, error)
- func GetTxpoolGasLimit(st StateDB) (*big.Int, error)
- func GetTxsCalc(st StateDB) (string, error)
- func GetTxsRewardCfg(st StateDB) (*mc.TxsRewardCfg, error)
- func GetTxsSuperAccounts(st StateDB) ([]common.Address, error)
- func GetUpTimeNum(st StateDB) (uint64, error)
- func GetVIPConfig(st StateDB) ([]mc.VIPConfig, error)
- func GetVersionInfo(st StateDB) string
- func GetVersionSuperAccounts(st StateDB) ([]common.Address, error)
- func IsInBlackList(addr common.Address, blacklist []common.Address) bool
- func SetBlkCalc(st StateDB, Calc string) error
- func SetBlkRewardCfg(st StateDB, cfg *mc.BlkRewardCfg) error
- func SetBlockProduceBlackList(st StateDB, status *mc.BlockProduceSlashBlackList) error
- func SetBlockProduceSlashCfg(st StateDB, cfg *mc.BlockProduceSlashCfg) error
- func SetBlockProduceStats(st StateDB, status *mc.BlockProduceStats) error
- func SetBlockProduceStatsStatus(st StateDB, status *mc.BlockProduceSlashStatsStatus) error
- func SetBlockSuperAccounts(st StateDB, accounts []common.Address) error
- func SetBroadcastAccounts(st StateDB, accounts []common.Address) error
- func SetBroadcastInterval(st StateDB, interval *mc.BCIntervalInfo) error
- func SetBroadcastTxs(st StateDB, txs common.BroadTxSlice) error
- func SetElectBlackList(st StateDB, accounts []common.Address) error
- func SetElectConfigInfo(st StateDB, cfg *mc.ElectConfigInfo) error
- func SetElectGenTime(st StateDB, genTime *mc.ElectGenTimeStruct) error
- func SetElectGraph(st StateDB, graph *mc.ElectGraph) error
- func SetElectMinerNum(st StateDB, num *mc.ElectMinerNumStruct) error
- func SetElectOnlineState(st StateDB, onlineState *mc.ElectOnlineStatus) error
- func SetElectWhiteList(st StateDB, accounts []common.Address) error
- func SetElectWhiteListSwitcher(st StateDB, switcher bool) error
- func SetFoundationAccount(st StateDB, account common.Address) error
- func SetInnerMinerAccounts(st StateDB, accounts []common.Address) error
- func SetInterestCalc(st StateDB, Calc string) error
- func SetInterestCalcNum(st StateDB, num uint64) error
- func SetInterestCfg(st StateDB, cfg *mc.InterestCfg) error
- func SetInterestPayNum(st StateDB, num uint64) error
- func SetLeaderConfig(st StateDB, cfg *mc.LeaderConfig) error
- func SetLotteryAccount(st StateDB, account *mc.LotteryFrom) error
- func SetLotteryCalc(st StateDB, Calc string) error
- func SetLotteryCfg(st StateDB, cfg *mc.LotteryCfg) error
- func SetLotteryNum(st StateDB, num uint64) error
- func SetMultiCoinSuperAccounts(st StateDB, accounts []common.Address) error
- func SetPreMinerBlkReward(st StateDB, reward *mc.MinerOutReward) error
- func SetPreMinerTxsReward(st StateDB, reward *mc.MinerOutReward) error
- func SetSlashCalc(st StateDB, Calc string) error
- func SetSlashCfg(st StateDB, cfg *mc.SlashCfg) error
- func SetSlashNum(st StateDB, num uint64) error
- func SetSubChainSuperAccounts(st StateDB, accounts []common.Address) error
- func SetSuperBlockCfg(st StateDB, cfg *mc.SuperBlkCfg) error
- func SetTopologyGraph(st StateDB, graph *mc.TopologyGraph) error
- func SetTxsCalc(st StateDB, Calc string) error
- func SetTxsRewardCfg(st StateDB, cfg *mc.TxsRewardCfg) error
- func SetTxsSuperAccounts(st StateDB, accounts []common.Address) error
- func SetUpTimeNum(st StateDB, num uint64) error
- func SetVIPConfig(st StateDB, cfgs []mc.VIPConfig) error
- func SetVersionInfo(st StateDB, version string) error
- func SetVersionSuperAccounts(st StateDB, accounts []common.Address) error
- type Manager
- type MatrixOperator
- type StateDB
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOptNotExist = errors.New("operator not exist in manager") ErrStateDBNil = errors.New("state db is nil") ErrParamReflect = errors.New("param reflect failed") ErrDataEmpty = errors.New("data is empty") ErrParamNil = errors.New("param is nil") ErrAccountNil = errors.New("account is empty account") ErrDataSize = errors.New("data size err") ErrFindManager = errors.New("find manger err") )
Functions ¶
func GetBlkCalc ¶
func GetBlkRewardCfg ¶
func GetBlkRewardCfg(st StateDB) (*mc.BlkRewardCfg, error)
/////////////////////////////////////////////////////////////////// 区块奖励相关
func GetBlockProduceBlackList ¶
func GetBlockProduceBlackList(st StateDB) (*mc.BlockProduceSlashBlackList, error)
func GetBlockProduceSlashCfg ¶
func GetBlockProduceSlashCfg(st StateDB) (*mc.BlockProduceSlashCfg, error)
func GetBlockProduceStats ¶
func GetBlockProduceStats(st StateDB) (*mc.BlockProduceStats, error)
func GetBlockProduceStatsStatus ¶
func GetBlockProduceStatsStatus(st StateDB) (*mc.BlockProduceSlashStatsStatus, error)
func GetBroadcastInterval ¶
func GetBroadcastInterval(st StateDB) (*mc.BCIntervalInfo, error)
func GetBroadcastIntervalByVersion ¶
func GetBroadcastIntervalByVersion(st StateDB, version string) (*mc.BCIntervalInfo, error)
func GetBroadcastTxs ¶
func GetBroadcastTxs(st StateDB) (common.BroadTxSlice, error)
func GetBroadcastTxs(st StateDB) (map[string]map[common.Address][]byte, error)
func GetElectConfigInfo ¶
func GetElectConfigInfo(st StateDB) (*mc.ElectConfigInfo, error)
func GetElectGenTime ¶
func GetElectGenTime(st StateDB) (*mc.ElectGenTimeStruct, error)
func GetElectGraph ¶
func GetElectGraph(st StateDB) (*mc.ElectGraph, error)
func GetElectMinerNum ¶
func GetElectMinerNum(st StateDB) (*mc.ElectMinerNumStruct, error)
func GetElectOnlineState ¶
func GetElectOnlineState(st StateDB) (*mc.ElectOnlineStatus, error)
func GetInterestCalc ¶
func GetInterestCalcNum ¶
func GetInterestCfg ¶
func GetInterestCfg(st StateDB) (*mc.InterestCfg, error)
/////////////////////////////////////////////////////////////////// 利息相关
func GetInterestPayNum ¶
func GetLeaderConfig ¶
func GetLeaderConfig(st StateDB) (*mc.LeaderConfig, error)
func GetLotteryAccount ¶
func GetLotteryAccount(st StateDB) (*mc.LotteryFrom, error)
func GetLotteryCalc ¶
func GetLotteryCfg ¶
func GetLotteryCfg(st StateDB) (*mc.LotteryCfg, error)
/////////////////////////////////////////////////////////////////// 彩票相关
func GetLotteryNum ¶
func GetMinHash ¶
func GetMinHash(st StateDB) (*mc.RandomInfoStruct, error)
func GetPreBroadcastRoot ¶
func GetPreBroadcastRoot(st StateDB) (*mc.PreBroadStateRoot, error)
func GetPreMinerBlkReward ¶
func GetPreMinerBlkReward(st StateDB) (*mc.MinerOutReward, error)
///////////////////////////////////////////////////////////////////
func GetPreMinerTxsReward ¶
func GetPreMinerTxsReward(st StateDB) (*mc.MinerOutReward, error)
func GetSlashCalc ¶
func GetSlashCfg ¶
/////////////////////////////////////////////////////////////////// 惩罚相关
func GetSlashNum ¶
func GetSuperBlockCfg ¶
func GetSuperBlockCfg(st StateDB) (*mc.SuperBlkCfg, error)
func GetTopologyGraph ¶
func GetTopologyGraph(st StateDB) (*mc.TopologyGraph, error)
func GetTopologyGraphByVersion ¶
func GetTopologyGraphByVersion(st StateDB, version string) (*mc.TopologyGraph, error)
func GetTxsCalc ¶
func GetTxsRewardCfg ¶
func GetTxsRewardCfg(st StateDB) (*mc.TxsRewardCfg, error)
/////////////////////////////////////////////////////////////////// 交易奖励相关
func GetUpTimeNum ¶
func GetVersionInfo ¶
func SetBlkCalc ¶
func SetBlkRewardCfg ¶
func SetBlkRewardCfg(st StateDB, cfg *mc.BlkRewardCfg) error
func SetBlockProduceBlackList ¶
func SetBlockProduceBlackList(st StateDB, status *mc.BlockProduceSlashBlackList) error
func SetBlockProduceSlashCfg ¶
func SetBlockProduceSlashCfg(st StateDB, cfg *mc.BlockProduceSlashCfg) error
func SetBlockProduceStats ¶
func SetBlockProduceStats(st StateDB, status *mc.BlockProduceStats) error
func SetBlockProduceStatsStatus ¶
func SetBlockProduceStatsStatus(st StateDB, status *mc.BlockProduceSlashStatsStatus) error
func SetBlockSuperAccounts ¶
func SetBroadcastInterval ¶
func SetBroadcastInterval(st StateDB, interval *mc.BCIntervalInfo) error
func SetBroadcastTxs ¶
func SetBroadcastTxs(st StateDB, txs common.BroadTxSlice) error
func SetElectConfigInfo ¶
func SetElectConfigInfo(st StateDB, cfg *mc.ElectConfigInfo) error
func SetElectGenTime ¶
func SetElectGenTime(st StateDB, genTime *mc.ElectGenTimeStruct) error
func SetElectGraph ¶
func SetElectGraph(st StateDB, graph *mc.ElectGraph) error
func SetElectMinerNum ¶
func SetElectMinerNum(st StateDB, num *mc.ElectMinerNumStruct) error
func SetElectOnlineState ¶
func SetElectOnlineState(st StateDB, onlineState *mc.ElectOnlineStatus) error
func SetInnerMinerAccounts ¶
func SetInterestCalc ¶
func SetInterestCalcNum ¶
func SetInterestCfg ¶
func SetInterestCfg(st StateDB, cfg *mc.InterestCfg) error
func SetInterestPayNum ¶
func SetLeaderConfig ¶
func SetLeaderConfig(st StateDB, cfg *mc.LeaderConfig) error
func SetLotteryAccount ¶
func SetLotteryAccount(st StateDB, account *mc.LotteryFrom) error
func SetLotteryCalc ¶
func SetLotteryCfg ¶
func SetLotteryCfg(st StateDB, cfg *mc.LotteryCfg) error
func SetLotteryNum ¶
func SetPreMinerBlkReward ¶
func SetPreMinerBlkReward(st StateDB, reward *mc.MinerOutReward) error
func SetPreMinerTxsReward ¶
func SetPreMinerTxsReward(st StateDB, reward *mc.MinerOutReward) error
func SetSlashCalc ¶
func SetSlashNum ¶
func SetSuperBlockCfg ¶
func SetSuperBlockCfg(st StateDB, cfg *mc.SuperBlkCfg) error
func SetTopologyGraph ¶
func SetTopologyGraph(st StateDB, graph *mc.TopologyGraph) error
func SetTxsCalc ¶
func SetTxsRewardCfg ¶
func SetTxsRewardCfg(st StateDB, cfg *mc.TxsRewardCfg) error
func SetUpTimeNum ¶
func SetVersionInfo ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func GetManager ¶
func (*Manager) FindOperator ¶
func (self *Manager) FindOperator(key string) (MatrixOperator, error)
type MatrixOperator ¶
Click to show internal directories.
Click to hide internal directories.