From feb9d3c5573124d5d80b28bb08139f1b809a1506 Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Tue, 10 Aug 2021 14:45:34 -0400 Subject: [PATCH] Shed: Include network name in genesis-verify --- cmd/lotus-shed/genesis-verify.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cmd/lotus-shed/genesis-verify.go b/cmd/lotus-shed/genesis-verify.go index c00ce2c7f61..0b61b680bab 100644 --- a/cmd/lotus-shed/genesis-verify.go +++ b/cmd/lotus-shed/genesis-verify.go @@ -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 }, }