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

Fix typos across multiple files #1450

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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 account/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
type Client interface {
//NewAccount create a new account.
NewAccount(label string, typeCode keypair.KeyType, curveCode byte, sigScheme s.SignatureScheme, passwd []byte) (*Account, error)
//ImportAccount import a already exist account to wallet
//ImportAccount import an already exist account to wallet
ImportAccount(accMeta *AccountMetadata) error
//GetAccountByAddress return account object by address
GetAccountByAddress(address string, passwd []byte) (*Account, error)
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/native_param.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func ParseNativeParamAddress(builder *neovm.ParamsBuilder, param string) error {
//Maybe param is a contract address
addr, err = common.AddressFromHexString(param)
if err != nil {
//Maybe param is a account address
//Maybe param is an account address
addr, err = common.AddressFromBase58(param)
if err != nil {
return fmt.Errorf("invalid address")
Expand Down
2 changes: 1 addition & 1 deletion common/zero_copy_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type ZeroCopySink struct {
buf []byte
}

// tryGrowByReslice is a inlineable version of grow for the fast-case where the
// tryGrowByReslice is an inlineable version of grow for the fast-case where the
// internal buffer only needs to be resliced.
// It returns the index where bytes should be written and whether it succeeded.
func (self *ZeroCopySink) tryGrowByReslice(n int) (int, bool) {
Expand Down
4 changes: 2 additions & 2 deletions core/store/ledgerstore/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ func (self *StateStore) init(currBlockHeight uint32) error {
return nil
}

//GetStateMerkleTree return merkle tree size an tree node
//GetStateMerkleTree return merkle tree size a tree node
func (self *StateStore) GetStateMerkleTree() (uint32, []common.Uint256, error) {
key := self.genStateMerkleTreeKey()
return self.getMerkleTree(key)
}

//GetBlockMerkleTree return merkle tree size an tree node
//GetBlockMerkleTree return merkle tree size a tree node
func (self *StateStore) GetBlockMerkleTree() (uint32, []common.Uint256, error) {
key := self.genBlockMerkleTreeKey()
return self.getMerkleTree(key)
Expand Down
2 changes: 1 addition & 1 deletion p2pserver/dht/kbucket/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (rt *RouteTable) nextBucket() {
newBucket := bucket.Split(len(rt.Buckets)-1, rt.local)
rt.Buckets = append(rt.Buckets, newBucket)

// The newly formed bucket still contains too many peers. We probably just unfolded a empty bucket.
// The newly formed bucket still contains too many peers. We probably just unfolded an empty bucket.
if newBucket.Len() >= rt.bucketsize {
// Keep unfolding the table until the last bucket is not overflowing.
rt.nextBucket()
Expand Down
2 changes: 1 addition & 1 deletion p2pserver/net/protocol/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with The ontology. If not, see <http://www.gnu.org/licenses/>.
*/

// Package p2p provides an network interface
// Package p2p provides a network interface
package p2p

import (
Expand Down
Loading