Limit context background (#8093)
* limit context background * update * fixed minor issues * fixed TestStatusCommand * Fix keyring import from older versions. (#8436) Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: sahith-narahari <sahithnarahari@gmail.com> * Add changelog (#8490) * fix: tendermint subcommands should not create missing files (#8481) If the user specifies an incorrect `--home`, then the old behaviour would automatically populate it with fresh values, but we should fail instead. * limit context background * update * fixed minor issues * fixed TestStatusCommand * statik.go * replaced static.go Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: sahith-narahari <sahithnarahari@gmail.com> Co-authored-by: Michael FIG <mfig@agoric.com>
This commit is contained in:
co-authored by
Jonathan Gimeno
Alessio Treglia
sahith-narahari
Michael FIG
parent
ce161c4f0c
commit
d37c590e90
@@ -1,7 +1,6 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
@@ -58,7 +57,7 @@ $ <appd> query slashing signing-info cosmosvalconspub1zcjduepqfhvwcmt7p06fvdgexx
|
||||
|
||||
consAddr := sdk.ConsAddress(pk.Address())
|
||||
params := &types.QuerySigningInfoRequest{ConsAddress: consAddr.String()}
|
||||
res, err := queryClient.SigningInfo(context.Background(), params)
|
||||
res, err := queryClient.SigningInfo(cmd.Context(), params)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -95,7 +94,7 @@ $ <appd> query slashing signing-infos
|
||||
}
|
||||
|
||||
params := &types.QuerySigningInfosRequest{Pagination: pageReq}
|
||||
res, err := queryClient.SigningInfos(context.Background(), params)
|
||||
res, err := queryClient.SigningInfos(cmd.Context(), params)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -128,7 +127,7 @@ $ <appd> query slashing params
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
|
||||
params := &types.QueryParamsRequest{}
|
||||
res, err := queryClient.Params(context.Background(), params)
|
||||
res, err := queryClient.Params(cmd.Context(), params)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user