diff --git a/api/debug/trace.go b/api/debug/trace.go index 2a9dcbe95..422bf6296 100644 --- a/api/debug/trace.go +++ b/api/debug/trace.go @@ -51,7 +51,7 @@ func (h *HandlerT) StartGoTrace(file string) error { return nil } -// StopTrace stops an ongoing trace. +// StopGoTrace stops an ongoing trace. func (h *HandlerT) StopGoTrace() error { h.mu.Lock() defer h.mu.Unlock() diff --git a/blockchain/types/account/account.go b/blockchain/types/account/account.go index cd1030c9a..3d02e7125 100644 --- a/blockchain/types/account/account.go +++ b/blockchain/types/account/account.go @@ -148,7 +148,7 @@ func NewAccountWithType(t AccountType) (Account, error) { return nil, ErrUndefinedAccountType } -// NewAccountWithType creates an Account object initialized with the given map. +// NewAccountWithMap creates an Account object initialized with the given map. func NewAccountWithMap(t AccountType, values map[AccountValueKeyType]interface{}) (Account, error) { switch t { case LegacyAccountType: diff --git a/blockchain/types/account/account_serializer.go b/blockchain/types/account/account_serializer.go index ec0267f92..e338bc94d 100644 --- a/blockchain/types/account/account_serializer.go +++ b/blockchain/types/account/account_serializer.go @@ -57,7 +57,7 @@ func NewAccountSerializerExt() *AccountSerializer { return &AccountSerializer{preserveExtHash: true} } -// NewAccountSerializerWithAccount creates a new AccountSerializer object with the given account. +// NewAccountSerializerExtWithAccount creates a new AccountSerializer object with the given account. func NewAccountSerializerExtWithAccount(a Account) *AccountSerializer { return &AccountSerializer{a.Type(), a, true} }