diff --git a/pkg/events/events_called.go b/pkg/events/events_called.go index 9b0173cb40..69508754b4 100644 --- a/pkg/events/events_called.go +++ b/pkg/events/events_called.go @@ -391,7 +391,7 @@ type StateMatchFunc func(oldTs, newTs *types.TipSet) (bool, StateChange, error) // - `StateChangeHandler` is called when the specified state change was observed // on-chain, and a confidence threshold was reached, or the specified `timeout` // height was reached with no state change observed. When this callback is -// invoked on a timeout, `oldTs` and `states are set to nil. +// invoked on a timeout, `oldTs` and `states` are set to nil. // This callback returns a boolean specifying whether further notifications // should be sent, like `more` return param from `CheckFunc` above. // diff --git a/pkg/fvm/fvm.go b/pkg/fvm/fvm.go index af1a0d3dc7..692523fcf1 100644 --- a/pkg/fvm/fvm.go +++ b/pkg/fvm/fvm.go @@ -86,7 +86,7 @@ func (x *FvmExtern) VerifyConsensusFault(ctx context.Context, a, b, extra []byte // Note that block syntax is not validated. Any validly signed block will be accepted pursuant to the below conditions. // Whether or not it could ever have been accepted in a chain is not checked/does not matter here. - // for that reason when checking block parent relationships, rather than instantiating a Tipset to do so + // For that reason when checking block parent relationships, rather than instantiating a Tipset to do so // (which runs a syntactic check), we do it directly on the CIDs. // (0) cheap preliminary checks @@ -669,7 +669,7 @@ func (r *xRedirect) MarshalCBOR(w io.Writer) error { // WARNING: You will not affect your node's execution by misusing this feature, but you will confuse yourself thoroughly! // An envvar that allows the user to specify debug actors bundles to be used by the FVM // alongside regular execution. This is basically only to be used to print out specific logging information. -// Message failures, unexpected terminations,gas costs, etc. should all be ignored. +// Message failures, unexpected terminations, gas costs, etc. should all be ignored. var useFvmDebug = os.Getenv("VENUS_FVM_DEVELOPER_DEBUG") == "1" func NewVM(ctx context.Context, opts vm.VmOption) (vm.Interface, error) { diff --git a/pkg/messagepool/messagepool.go b/pkg/messagepool/messagepool.go index ccb1766169..3d4f08a58d 100644 --- a/pkg/messagepool/messagepool.go +++ b/pkg/messagepool/messagepool.go @@ -482,7 +482,7 @@ func New(ctx context.Context, } func (mp *MessagePool) resolveToKey(ctx context.Context, addr address.Address) (address.Address, error) { - //if addr is not an ID addr, then it is already resolved to a key + // if addr is not an ID addr, then it is already resolved to a key if addr.Protocol() != address.ID { return addr, nil }