Skip to content

Commit 6c5ab25

Browse files
authored
chore: fix struct field name in comment (#2374)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview fix struct field name in comment <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated method comments to reflect new method names for improved clarity and consistency. No functional changes were made. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: one230six <723682061@qq.com>
1 parent 77538f9 commit 6c5ab25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/store/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ type Store interface {
1414
// SetHeight sets the height saved in the Store if it is higher than the existing height.
1515
SetHeight(ctx context.Context, height uint64) error
1616

17-
// SaveBlock saves block along with its seen signature (which will be included in the next block).
17+
// SaveBlockData saves block along with its seen signature (which will be included in the next block).
1818
SaveBlockData(ctx context.Context, header *types.SignedHeader, data *types.Data, signature *types.Signature) error
1919

20-
// GetBlock returns block at given height, or error if it's not found in Store.
20+
// GetBlockData returns block at given height, or error if it's not found in Store.
2121
GetBlockData(ctx context.Context, height uint64) (*types.SignedHeader, *types.Data, error)
2222
// GetBlockByHash returns block with given block header hash, or error if it's not found in Store.
2323
GetBlockByHash(ctx context.Context, hash []byte) (*types.SignedHeader, *types.Data, error)

0 commit comments

Comments
 (0)