Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some function names in comment #4502

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/coreservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type (
ActionByActionHash(h hash.Hash256) (*action.SealedEnvelope, *block.Block, uint32, error)
// PendingActionByActionHash returns action by action hash
PendingActionByActionHash(h hash.Hash256) (*action.SealedEnvelope, error)
// ActPoolActions returns the all Transaction Identifiers in the actpool
// ActionsInActPool returns the all Transaction Identifiers in the actpool
ActionsInActPool(actHashes []string) ([]*action.SealedEnvelope, error)
// BlockByHeightRange returns blocks within the height range
BlockByHeightRange(uint64, uint64) ([]*apitypes.BlockWithReceipts, error)
Expand Down
2 changes: 1 addition & 1 deletion ioctl/cmd/bc/bcbucketlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func getBucketList(method, addr string, args ...string) (err error) {
return output.NewError(output.InputError, "unknown <method>", nil)
}

// getBucketList get bucket list from chain by voter address
// getBucketListByVoter get bucket list from chain by voter address
func getBucketListByVoter(addr string, offset, limit uint32) error {
address, err := util.GetAddress(addr)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/itx/nodestats/systemstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type DiskStatus struct {
Free uint64 `json:"Free"`
}

// diskusage of path/disk
// diskUsage of path/disk
func diskUsage(path string) (disk DiskStatus) {
fs := syscall.Statfs_t{}
err := syscall.Statfs(path, &fs)
Expand Down
2 changes: 1 addition & 1 deletion state/factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (sf *factory) State(s interface{}, opts ...protocol.StateOption) (uint64, e
return sf.currentChainHeight, state.Deserialize(s, value)
}

// State returns a set states in the state factory
// States returns a set states in the state factory
func (sf *factory) States(opts ...protocol.StateOption) (uint64, state.Iterator, error) {
sf.mutex.RLock()
defer sf.mutex.RUnlock()
Expand Down
2 changes: 1 addition & 1 deletion state/factory/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (sdb *stateDB) State(s interface{}, opts ...protocol.StateOption) (uint64,
return sdb.currentChainHeight, sdb.state(sdb.currentChainHeight, cfg.Namespace, cfg.Key, s)
}

// State returns a set of states in the state factory
// States returns a set of states in the state factory
func (sdb *stateDB) States(opts ...protocol.StateOption) (uint64, state.Iterator, error) {
cfg, err := processOptions(opts...)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion state/factory/workingset.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func (ws *workingSet) Reset() {
ws.dock.Reset()
}

// createGenesisStates initialize the genesis states
// CreateGenesisStates initialize the genesis states
func (ws *workingSet) CreateGenesisStates(ctx context.Context) error {
if reg, ok := protocol.GetRegistry(ctx); ok {
for _, p := range reg.All() {
Expand Down
Loading