lotus/build/version.go

49 lines
862 B
Go
Raw Normal View History

package build
2021-04-29 18:01:23 +00:00
import "os"
var CurrentCommit string
2020-06-01 18:43:51 +00:00
var BuildType int
const (
2021-04-21 22:52:18 +00:00
BuildDefault = 0
BuildMainnet = 0x1
Build2k = 0x2
BuildDebug = 0x3
BuildCalibnet = 0x4
BuildInteropnet = 0x5
BuildButterflynet = 0x7
2020-06-01 18:43:51 +00:00
)
2021-09-22 13:57:17 +00:00
func BuildTypeString() string {
2020-06-01 18:43:51 +00:00
switch BuildType {
case BuildDefault:
2020-06-01 19:11:37 +00:00
return ""
2021-01-20 06:47:27 +00:00
case BuildMainnet:
return "+mainnet"
2020-06-01 18:43:51 +00:00
case Build2k:
return "+2k"
2021-01-20 06:47:27 +00:00
case BuildDebug:
return "+debug"
case BuildCalibnet:
return "+calibnet"
2021-06-02 18:49:10 +00:00
case BuildInteropnet:
return "+interopnet"
2021-04-21 22:52:18 +00:00
case BuildButterflynet:
return "+butterflynet"
2020-06-01 18:43:51 +00:00
default:
return "+huh?"
}
}
2021-08-14 03:16:03 +00:00
// BuildVersion is the local build version
feat: sealing: Support nv22 DDO features in the sealing pipeline (#11226) * Initial work supporting DDO pieces in lotus-miner * sealing: Update pipeline input to operate on UniversalPiece * sealing: Update pipeline checks/sealing states to operate on UniversalPiece * sealing: Make pipeline build with UniversalPiece * move PieceDealInfo out of api * make gen * make sealing pipeline unit tests pass * fix itest ensemble build * don't panic in SectorsStatus with deals * stop linter from complaining about checkPieces * fix sector import tests * mod tidy * sealing: Add logic for (pre)committing DDO sectors * sealing: state-types with method defs * DDO non-snap pipeline works(?), DDO Itests * DDO support in snapdeals pipeline * make gen * update actor bundles * update the gst market fix * fix: chain: use PreCommitSectorsBatch2 when setting up genesis * some bug fixes * integration working changes * update actor bundles * Make TestOnboardRawPieceSnap pass * Appease the linter * Make deadlines test pass with v12 actors * Update go-state-types, abstract market DealState * make gen * mod tidy, lint fixes * Fix some more tests * Bump version in master Bump version in master * Make gen Make gen * fix sender * fix: lotus-provider: Fix winning PoSt * fix: sql Scan cannot write to an object * Actually show miner-addrs in info-log Actually show miner-addrs in lotus-provider info-log * [WIP] feat: Add nv22 skeleton Addition of Network Version 22 skeleton * update FFI * ddo is now nv22 * make gen * temp actor bundle with ddo * use working go-state-types * gst with v13 market migration * update bundle, builtin.MethodsMiner.ProveCommitSectors2 -> 3 * actually working v13 migration, v13 migration itest * Address review * sealing: Correct DDO snap pledge math * itests: Mixed ddo itest * pipeline: Fix sectorWeight * sealing: convert market deals into PAMs in mixed sectors * sealing: make market to ddo conversion work * fix lint * update gst * Update actors and GST to lastest integ branch * commit batcher: Update ProveCommitSectors3Params builder logic * make gen * use builtin-actors master * ddo: address review * itests: Add commd assertions to ddo tests * make gen * gst with fixed types * config knobs for RequireActivationSuccess * storage: Drop obsolete flaky tasts --------- Co-authored-by: Jennifer Wang <jiayingw703@gmail.com> Co-authored-by: Aayush <arajasek94@gmail.com> Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai> Co-authored-by: Phi <orjan.roren@gmail.com> Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com> Co-authored-by: TippyFlits <james.bluett@protocol.ai>
2024-01-25 14:15:55 +00:00
const BuildVersion = "1.25.3-dev"
2020-06-01 18:43:51 +00:00
func UserVersion() string {
2021-04-30 09:18:15 +00:00
if os.Getenv("LOTUS_VERSION_IGNORE_COMMIT") == "1" {
return BuildVersion
}
2021-09-22 13:57:17 +00:00
return BuildVersion + BuildTypeString() + CurrentCommit
2020-06-01 18:43:51 +00:00
}