Skip to content

Commit 85196bc

Browse files
rustroverenvestcc
andauthored
chore: fix some function names in comment (#4647)
Signed-off-by: rustrover <[email protected]> Co-authored-by: Chen Chen <[email protected]>
1 parent 73b77f2 commit 85196bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/coreservice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ func (core *coreService) ActionByActionHash(h hash.Hash256) (*action.SealedEnvel
11531153
return selp, blk, index, nil
11541154
}
11551155

1156-
// ActionByActionHash returns action by action hash
1156+
// PendingActionByActionHash returns action by action hash
11571157
func (core *coreService) PendingActionByActionHash(h hash.Hash256) (*action.SealedEnvelope, error) {
11581158
selp, err := core.ap.GetActionByHash(h)
11591159
if err != nil {

consensus/scheme/rolldpos/proposalpool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestProposalPool(t *testing.T) {
115115
})
116116
}
117117

118-
// makeBlock is a helper to create a block with the given height and prevHash
118+
// makeBlock2 is a helper to create a block with the given height and prevHash
119119
func makeBlock2(r *require.Assertions, height uint64, prevHash hash.Hash256) *block.Block {
120120
// minimal mock
121121
bd := block.NewBuilder(block.NewRunnableActionsBuilder().Build()).

0 commit comments

Comments
 (0)