Merge pull request #7019 from filecoin-project/asr/genesis-shed

Shed: Include network name in genesis-verify
This commit is contained in:
Steven Allen 2021-08-10 16:25:02 -07:00 committed by GitHub
commit 130fc6fce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,8 @@ import (
"os"
"sort"
_init "github.com/filecoin-project/lotus/chain/actors/builtin/init"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/fatih/color"
@ -171,6 +173,24 @@ var genesisVerifyCmd = &cli.Command{
}
fmt.Printf("]\n")
}
act, err := stree.GetActor(_init.Address)
if err != nil {
return err
}
ias, err := _init.Load(store, act)
if err != nil {
return err
}
nn, err := ias.NetworkName()
if err != nil {
return err
}
fmt.Println("Network name: ", nn)
return nil
},
}