From 65f8fae67a15d5e9e48d686d86347c11498fb91d Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sat, 1 Aug 2020 11:43:34 -0700 Subject: [PATCH 1/2] allow chain list to print useful gas statistics --- cli/chain.go | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/cli/chain.go b/cli/chain.go index 1bb34e673..f692c5476 100644 --- a/cli/chain.go +++ b/cli/chain.go @@ -15,6 +15,7 @@ import ( "github.com/filecoin-project/go-address" cborutil "github.com/filecoin-project/go-cbor-util" "github.com/filecoin-project/specs-actors/actors/abi" + "github.com/filecoin-project/specs-actors/actors/abi/big" "github.com/filecoin-project/specs-actors/actors/builtin" "github.com/filecoin-project/specs-actors/actors/builtin/account" "github.com/filecoin-project/specs-actors/actors/builtin/market" @@ -27,6 +28,7 @@ import ( "golang.org/x/xerrors" "github.com/filecoin-project/lotus/api" + "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors" types "github.com/filecoin-project/lotus/chain/types" ) @@ -365,6 +367,10 @@ var chainListCmd = &cli.Command{ Usage: "specify the format to print out tipsets", Value: ": (