From 5b94d063cce551cac73407669e3a7fa20fe399d0 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:29:45 +0100 Subject: [PATCH 1/6] typos client.go --- account/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/client.go b/account/client.go index 22b252ea85..eeb6f8cd67 100644 --- a/account/client.go +++ b/account/client.go @@ -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) From 1d58ee3cb81db97495f6e2eaa610ffc3e94389a3 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:30:21 +0100 Subject: [PATCH 2/6] typos native_param.go --- cmd/utils/native_param.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils/native_param.go b/cmd/utils/native_param.go index eaaf8f82eb..3f481c3fdf 100644 --- a/cmd/utils/native_param.go +++ b/cmd/utils/native_param.go @@ -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") From 8121e3c8677c30bc356ed8361965f237dd2edc03 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:30:59 +0100 Subject: [PATCH 3/6] typos zero_copy_sink.go --- common/zero_copy_sink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/zero_copy_sink.go b/common/zero_copy_sink.go index 058676d371..7225345aba 100644 --- a/common/zero_copy_sink.go +++ b/common/zero_copy_sink.go @@ -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) { From e2934ee1331374e93b23c6f61688ae7c6ca7432d Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:31:31 +0100 Subject: [PATCH 4/6] typos state_store.go --- core/store/ledgerstore/state_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/store/ledgerstore/state_store.go b/core/store/ledgerstore/state_store.go index fbeb5bfd66..7d5162d4cd 100644 --- a/core/store/ledgerstore/state_store.go +++ b/core/store/ledgerstore/state_store.go @@ -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) From b9343e209cee2ce38b2b42c7b1c9cc8f8196c309 Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:32:30 +0100 Subject: [PATCH 5/6] typos table.go --- p2pserver/dht/kbucket/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2pserver/dht/kbucket/table.go b/p2pserver/dht/kbucket/table.go index 3c2654f145..84d7f7a728 100644 --- a/p2pserver/dht/kbucket/table.go +++ b/p2pserver/dht/kbucket/table.go @@ -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() From 1dd1e3176a94c52841ada193c8c52e80f406f9bb Mon Sep 17 00:00:00 2001 From: Tristav <124001124+Pricstas@users.noreply.github.com> Date: Wed, 18 Dec 2024 20:33:01 +0100 Subject: [PATCH 6/6] typos server.go --- p2pserver/net/protocol/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2pserver/net/protocol/server.go b/p2pserver/net/protocol/server.go index a0026e31a1..e2a1f880f7 100644 --- a/p2pserver/net/protocol/server.go +++ b/p2pserver/net/protocol/server.go @@ -16,7 +16,7 @@ * along with The ontology. If not, see . */ -// Package p2p provides an network interface +// Package p2p provides a network interface package p2p import (