Rename constants to match CE spec

This commit is contained in:
Aayush Rajasekaran 2020-07-27 19:10:13 -04:00
parent 7153bda0be
commit 0b1d80d3e3
3 changed files with 5 additions and 5 deletions

View File

@ -59,8 +59,8 @@ const WinningPoStSectorSetLookback = abi.ChainEpoch(10)
// ///// // /////
// Devnet settings // Devnet settings
const TotalFilecoin = uint64(2_000_000_000) const FilBase = uint64(2_000_000_000)
const MiningRewardTotal = uint64(1_100_000_000) const FilAllocStorageMining = uint64(1_100_000_000)
const FilecoinPrecision = uint64(1_000_000_000_000_000_000) const FilecoinPrecision = uint64(1_000_000_000_000_000_000)
@ -69,7 +69,7 @@ var InitialRewardBalance *big.Int
// TODO: Move other important consts here // TODO: Move other important consts here
func init() { func init() {
InitialRewardBalance = big.NewInt(int64(MiningRewardTotal)) InitialRewardBalance = big.NewInt(int64(FilAllocStorageMining))
InitialRewardBalance = InitialRewardBalance.Mul(InitialRewardBalance, big.NewInt(int64(FilecoinPrecision))) InitialRewardBalance = InitialRewardBalance.Mul(InitialRewardBalance, big.NewInt(int64(FilecoinPrecision)))
} }

View File

@ -11,7 +11,7 @@ import (
const BigIntMaxSerializedLen = 128 // is this big enough? or too big? const BigIntMaxSerializedLen = 128 // is this big enough? or too big?
var TotalFilecoinInt = FromFil(build.TotalFilecoin) var TotalFilecoinInt = FromFil(build.FilBase)
var EmptyInt = BigInt{} var EmptyInt = BigInt{}

View File

@ -72,7 +72,7 @@ func (rt *Runtime) TotalFilCircSupply() abi.TokenAmount {
rt.Abortf(exitcode.ErrIllegalState, "failed to get reward actor for computing total supply: %s", err) rt.Abortf(exitcode.ErrIllegalState, "failed to get reward actor for computing total supply: %s", err)
} }
filMined := types.BigSub(types.FromFil(build.MiningRewardTotal), rew.Balance) filMined := types.BigSub(types.FromFil(build.FilAllocStorageMining), rew.Balance)
burnt, err := rt.state.GetActor(builtin.BurntFundsActorAddr) burnt, err := rt.state.GetActor(builtin.BurntFundsActorAddr)
if err != nil { if err != nil {