diff --git a/cli/mpool.go b/cli/mpool.go index d38d938f3..23adfad68 100644 --- a/cli/mpool.go +++ b/cli/mpool.go @@ -1,6 +1,7 @@ package cli import ( + "encoding/json" "fmt" "gopkg.in/urfave/cli.v2" @@ -32,7 +33,11 @@ var mpoolPending = &cli.Command{ } for _, msg := range msgs { - fmt.Println(msg) + out, err := json.MarshalIndent(msg, "", " ") + if err != nil { + return err + } + fmt.Println(string(out)) } return nil