18 lines
351 B
Go
18 lines
351 B
Go
|
package build
|
||
|
|
||
|
import rice "github.com/GeertJohan/go.rice"
|
||
|
|
||
|
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
|
||
|
}
|