7873213b11
point to correct version of sectorbuilder + ensure go-datastore stays at 0.1.1 replace local address type with go-address consume paramfetch.GetParams instead of local paramfetch.go remove constants now defined in sectorbuilder
23 lines
425 B
Go
23 lines
425 B
Go
package build
|
|
|
|
import (
|
|
rice "github.com/GeertJohan/go.rice"
|
|
logging "github.com/ipfs/go-log"
|
|
)
|
|
|
|
var log = logging.Logger("build")
|
|
|
|
func MaybeGenesis() []byte {
|
|
builtinGen, err := rice.FindBox("genesis")
|
|
if err != nil {
|
|
log.Warn("loading built-in genesis: %s", err)
|
|
return nil
|
|
}
|
|
genBytes, err := builtinGen.Bytes("devnet.car")
|
|
if err != nil {
|
|
log.Warn("loading built-in genesis: %s", err)
|
|
}
|
|
|
|
return genBytes
|
|
}
|