Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Oct 29, 2024
1 parent d5727db commit 3c2ef59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/mysql/store_map_epoch_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (e2bms *epochBlockMapStore) BlockRange(epoch uint64) (citypes.RangeUint64,
return bnr, existed, nil
}

// ClosestEpochUpToBlock finds the nearest epoch with an ending block less than or equal to `blockNumber`.
// ClosestEpochUpToBlock finds the nearest epoch with its ending block less than or equal to `blockNumber`.
func (e2bms *epochBlockMapStore) ClosestEpochUpToBlock(blockNumber uint64) (uint64, bool, error) {
var result epochBlockMap
err := e2bms.db.
Expand Down

0 comments on commit 3c2ef59

Please sign in to comment.