package build import ( "bytes" "github.com/filecoin-project/lotus/chain/actors" "github.com/BurntSushi/toml" ) var BuiltinActorReleases map[actors.Version]string func init() { BuiltinActorReleases = make(map[actors.Version]string) spec := BundleSpec{} r := bytes.NewReader(BuiltinActorBundles) _, err := toml.DecodeReader(r, &spec) if err != nil { panic(err) } for _, b := range spec.Bundles { BuiltinActorReleases[b.Version] = b.Release } }