Documentation ¶
Index ¶
Constants ¶
View Source
const ( POCReward = uint64(600) FutureBlockTime = uint64(18) BlockTotal = 360 * 24 * 60 * 60 / FutureBlockTime Blocks = subsidyHalvingInterval - 576000 GenesisDifficulty = uint64(40000000000000000) // Difficulty of the Genesis block. MinimumDifficulty = uint64(40000000000000000) // The minimum that the difficulty may ever be. GenesisNumber = 0 PledgeNumber = GenesisNumber + 100 DayBlock = 24 * 60 * 60 / FutureBlockTime Day60 = 60 //Received in 60 days GenesisTimestamp = 1638167432 MinSectorExpiration = 180 ChainID = 37021 BaseCapacity = 102 //GB TotalCapacity = 100 // default 100PB BasePB = 1024 * 1024 StakingNum = 50 )
Variables ¶
View Source
var ( ExpectedMin = new(big.Int).Mul(big.NewInt(0).SetUint64(10000), big.NewInt(1e+18)) ExpectedMax = new(big.Int).Mul(big.NewInt(0).SetUint64(20000), big.NewInt(1e+18)) )
View Source
var ( StakingBase = map[uint64]float64{ 90: 0.1, 180: 0.2, 360: 0.3, 1080: 0.5, } StakingRewardProportion = big.NewInt(20) MineRewardProportion = big.NewInt(80) StakingLowerLimit = new(big.Int).Mul(big.NewInt(1000), big.NewInt(1e+18)) )
View Source
var BigOne = big.NewInt(1)
BigOne bigOne is 1 represented as a big.Int. It is defined here to avoid the overhead of creating it multiple times.
View Source
var BlockReward = big.NewInt(0).Mul(big.NewInt(0).SetUint64(POCReward), big.NewInt(1e+18))
View Source
var ExpectedAddr = common.HexToAddress("0xD730fA4e94001A5461ffdE34339d21Ac41e8FEb9")
MainPocLimit mainPocLimit is the smallest proof of capacity target.
Functions ¶
func CalculateWeight ¶ added in v1.8.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.