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 comments #6385

Merged
merged 1 commit into from
Aug 2, 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 pkg/chain/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (w *Waiter) findMessage(ctx context.Context, from *types.TipSet, m types.Ch
// the message, block and receipt, when it is found. Reads until the channel is
// closed or the context done. Returns the found message/block (or nil if the
// channel closed without finding it), whether it was found, or an error.
// notice matching mesage by message from and nonce. the return message may not be
// notice matching message by message from and nonce. the return message may not be
// expected, because there maybe another message have the same from and nonce value
func (w *Waiter) waitForMessage(ctx context.Context, ch <-chan []*types.HeadChange, msg types.ChainMsg, confidence uint64, lookbackLimit abi.ChainEpoch, allowReplaced bool) (*types.ChainMessage, bool, error) {
current, ok := <-ch
Expand Down
2 changes: 1 addition & 1 deletion pkg/clock/chainclock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestChainEpochClock(t *testing.T) {
cec.WaitForEpoch(ctx, waitEpoch)
}()

t.Logf("waitting for next epoch.")
t.Logf("waiting for next epoch.")
wg.Wait()

assert.Equal(t, waitEpoch, expectedNextEpoch)
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type InvocationContext interface {
Store() rt5.Store
// Message contains information available to the actor about the executing message.
Message() rt5.Message
// ValidateCaller validates the caller against a patter.
// ValidateCaller validates the caller against a pattern.
//
// All actor methods MUST call this method before returning.
ValidateCaller(CallerPattern)
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/vmcontext/vmcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (vm *LegacyVM) ApplyImplicitMessage(ctx context.Context, msg types.ChainMsg
//
// This messages do not consume client gas and must not fail.
func (vm *LegacyVM) applyImplicitMessage(msg *types.Message) (*Ret, error) {
// implicit messages gas is tracked separatly and not paid by the miner
// implicit messages gas is tracked separately and not paid by the miner
gasTank := gas.NewGasTracker(constants.BlockGasLimit * 10000)
gasTank.FillMessageTrace(msg)

Expand Down
Loading