chore(docs): fix functions and struct comments (#21010)
This commit is contained in:
parent
f9f2ad7fa9
commit
331eaf42f3
@ -2113,7 +2113,7 @@ func (*StatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_node_v1beta1_query_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
// StateResponse defines the response structure for the status of a node.
|
||||
// StatusResponse defines the response structure for the status of a node.
|
||||
type StatusResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
|
||||
@ -176,7 +176,7 @@ func (m *StatusRequest) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
|
||||
|
||||
// StateResponse defines the response structure for the status of a node.
|
||||
// StatusResponse defines the response structure for the status of a node.
|
||||
type StatusResponse struct {
|
||||
EarliestStoreHeight uint64 `protobuf:"varint,1,opt,name=earliest_store_height,json=earliestStoreHeight,proto3" json:"earliest_store_height,omitempty"`
|
||||
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
|
||||
|
||||
@ -33,7 +33,7 @@ message ConfigResponse {
|
||||
// StatusRequest defines the request structure for the status of a node.
|
||||
message StatusRequest {}
|
||||
|
||||
// StateResponse defines the response structure for the status of a node.
|
||||
// StatusResponse defines the response structure for the status of a node.
|
||||
message StatusResponse {
|
||||
uint64 earliest_store_height = 1; // earliest block height available in the store
|
||||
uint64 height = 2; // current block height
|
||||
|
||||
@ -137,7 +137,7 @@ func Example() {
|
||||
// Output: 10000
|
||||
}
|
||||
|
||||
// ExampleOneModule shows how to use the integration test framework to test the integration of a single module.
|
||||
// Example_oneModule shows how to use the integration test framework to test the integration of a single module.
|
||||
// That module has no dependency on other modules.
|
||||
func Example_oneModule() {
|
||||
// in this example we are testing the integration of the auth module:
|
||||
|
||||
@ -464,7 +464,7 @@ func NewValidateSigCountDecorator(ak AccountKeeper) ValidateSigCountDecorator {
|
||||
}
|
||||
}
|
||||
|
||||
// AnteHandler implements an ante decorator for ValidateSigCountDecorator
|
||||
// AnteHandle implements an ante decorator for ValidateSigCountDecorator
|
||||
func (vscd ValidateSigCountDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, _ bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||
if err := vscd.ValidateTx(ctx, tx); err != nil {
|
||||
return ctx, err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user