327760acff
* chore: update ffi to increase execution parallelism * Don't enforce walking receipt tree during compaction * fix: build: drop drand incentinet servers * chore: release lotus v1.20.4 * Apply suggestions from code review Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> * feat: Introduce nv19 skeleton Update to go-state-types v0.11.0-alpha-1 Introduce dummy v11 actor bundles Make new actors adapters Add upgrade to Upgrade Schedules make jen Update to go-state-types v0.11.0-alpha-2 * feat: vm: switch to the new exec trace format (#10372) This is now "FVM" native. Changes include: 1. Don't treat "trace" messages like off-chain messages. E.g., don't include CIDs, versions, etc. 2. Include IPLD codecs where applicable. 3. Remove fields that aren't filled by the FVM (timing, some errors, code locations, etc.). * feat: implement FIP-0061 * Address review * Add and test the FIP-0061 migration * Update actors bundles to fip/20230406 * Update to go-state-types master * Update to actors v11.0.0-rc1 * - Update go state types - Keep current expiration defaults on creation, extension some tests - Update ffi * ffi experiment * Integration nv19 migration - Open splitstore in migration shed tool - Update state root version * Post rebase fixup * Fix * gen * nv19 invariant checking * Try fixig blockstore so bundle is loaded * Debug * Fix * Make butterfly upgrades happen * Another ffi experiment * Fix copy paste error * Actually schedule migration (#10656) Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> * Butterfly artifacts * Set calibration net upgrade height * Review Response * Fix state tree version assert * Quick butterfly upgrade to sanity check (#10660) * Quick butterfly upgrade to sanity check * Update butterfly artifacts * Revert fake fix * Give butterfly net correct genesis * Butterfly artifacts * Give time before upgrade --------- Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> * chore:releasepolish v1.22 release (#10666) * Update butterfly artifacts * register actors v11 * Update calibration upgrade time * State inspection shed cmds * Fix * make gen * Fix swallowed errors * Lint fixup --------- Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> * v1.22.0-rc3 * bundle fix * Feat/expedite nv19 (#10681) * Update go-state-types * Modify upgrade schedule and params * Revert fip 0052 * Update gst * docsgen * fast butterfly migration to validate migration * Correct epoch to match specified date * Update actors v11 * Update changelog build version * Update butterfly artifacts * Fix lotus-miner init to work after upgrade --------- Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> * fix:deps:stable ffi for stable release (#10698) * Point to stable ffi for stable lotus release * go mod tidy --------- Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> --------- Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com> Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com> Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> Co-authored-by: Steven Allen <steven@stebalien.com> Co-authored-by: jennijuju <jiayingw703@gmail.com>
134 lines
3.1 KiB
Go
134 lines
3.1 KiB
Go
//go:build !testground
|
|
// +build !testground
|
|
|
|
package build
|
|
|
|
import (
|
|
"math/big"
|
|
"os"
|
|
|
|
"github.com/filecoin-project/go-address"
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
"github.com/filecoin-project/go-state-types/network"
|
|
builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"
|
|
|
|
"github.com/filecoin-project/lotus/chain/actors/policy"
|
|
)
|
|
|
|
// /////
|
|
// Storage
|
|
|
|
const UnixfsChunkSize uint64 = 1 << 20
|
|
const UnixfsLinksPerLevel = 1024
|
|
|
|
// /////
|
|
// Consensus / Network
|
|
|
|
const AllowableClockDriftSecs = uint64(1)
|
|
|
|
// TODO: nv19: Re-enable when migration is setup
|
|
//// Used by tests and some obscure tooling
|
|
///* inline-gen template
|
|
//
|
|
//const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
|
|
//
|
|
///* inline-gen start */
|
|
|
|
const TestNetworkVersion = network.Version18
|
|
|
|
///* inline-gen end */
|
|
|
|
// Epochs
|
|
const ForkLengthThreshold = Finality
|
|
|
|
// Blocks (e)
|
|
var BlocksPerEpoch = uint64(builtin2.ExpectedLeadersPerEpoch)
|
|
|
|
// Epochs
|
|
const Finality = policy.ChainFinality
|
|
const MessageConfidence = uint64(5)
|
|
|
|
// constants for Weight calculation
|
|
// The ratio of weight contributed by short-term vs long-term factors in a given round
|
|
const WRatioNum = int64(1)
|
|
const WRatioDen = uint64(2)
|
|
|
|
// /////
|
|
// Proofs
|
|
|
|
// Epochs
|
|
// TODO: unused
|
|
const SealRandomnessLookback = policy.SealRandomnessLookback
|
|
|
|
// /////
|
|
// Mining
|
|
|
|
// Epochs
|
|
const TicketRandomnessLookback = abi.ChainEpoch(1)
|
|
|
|
// /////
|
|
// Address
|
|
|
|
const AddressMainnetEnvVar = "_mainnet_"
|
|
|
|
// the 'f' prefix doesn't matter
|
|
var ZeroAddress = MustParseAddress("f3yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaby2smx7a")
|
|
|
|
// /////
|
|
// Devnet settings
|
|
|
|
var Devnet = true
|
|
|
|
const FilBase = uint64(2_000_000_000)
|
|
const FilAllocStorageMining = uint64(1_100_000_000)
|
|
|
|
const FilecoinPrecision = uint64(1_000_000_000_000_000_000)
|
|
const FilReserved = uint64(300_000_000)
|
|
|
|
var InitialRewardBalance *big.Int
|
|
var InitialFilReserved *big.Int
|
|
|
|
// TODO: Move other important consts here
|
|
|
|
func init() {
|
|
InitialRewardBalance = big.NewInt(int64(FilAllocStorageMining))
|
|
InitialRewardBalance = InitialRewardBalance.Mul(InitialRewardBalance, big.NewInt(int64(FilecoinPrecision)))
|
|
|
|
InitialFilReserved = big.NewInt(int64(FilReserved))
|
|
InitialFilReserved = InitialFilReserved.Mul(InitialFilReserved, big.NewInt(int64(FilecoinPrecision)))
|
|
|
|
if os.Getenv("LOTUS_ADDRESS_TYPE") == AddressMainnetEnvVar {
|
|
SetAddressNetwork(address.Mainnet)
|
|
}
|
|
}
|
|
|
|
// Sync
|
|
const BadBlockCacheSize = 1 << 15
|
|
|
|
// assuming 4000 messages per round, this lets us not lose any messages across a
|
|
// 10 block reorg.
|
|
const BlsSignatureCacheSize = 40000
|
|
|
|
// Size of signature verification cache
|
|
// 32k keeps the cache around 10MB in size, max
|
|
const VerifSigCacheSize = 32000
|
|
|
|
// ///////
|
|
// Limits
|
|
|
|
// TODO: If this is gonna stay, it should move to specs-actors
|
|
const BlockMessageLimit = 10000
|
|
|
|
var BlockGasLimit = int64(10_000_000_000)
|
|
var BlockGasTarget = BlockGasLimit / 2
|
|
|
|
const BaseFeeMaxChangeDenom = 8 // 12.5%
|
|
const InitialBaseFee = 100e6
|
|
const MinimumBaseFee = 100
|
|
const PackingEfficiencyNum = 4
|
|
const PackingEfficiencyDenom = 5
|
|
|
|
// Actor consts
|
|
// TODO: pieceSize unused from actors
|
|
var MinDealDuration, MaxDealDuration = policy.DealDurationBounds(0)
|