diff --git a/blockchain/indexers/addrindex.go b/blockchain/indexers/addrindex.go index 4c92906c1..f0548448e 100644 --- a/blockchain/indexers/addrindex.go +++ b/blockchain/indexers/addrindex.go @@ -373,7 +373,7 @@ func dbRemoveAddrIndexEntries(bucket internalBucket, addrKey [addrKeySize]byte, return nil } - // Loop fowards through the levels while removing entries until the + // Loop forwards through the levels while removing entries until the // specified number has been removed. This will potentially result in // entirely empty lower levels which will be backfilled below. var highestLoadedLevel uint8 diff --git a/blockchain/indexers/addrindex_test.go b/blockchain/indexers/addrindex_test.go index 92fce5385..135ef1919 100644 --- a/blockchain/indexers/addrindex_test.go +++ b/blockchain/indexers/addrindex_test.go @@ -18,7 +18,7 @@ type addrIndexBucket struct { levels map[[levelKeySize]byte][]byte } -// Clone returns a deep copy of the mock adress index bucket. +// Clone returns a deep copy of the mock address index bucket. func (b *addrIndexBucket) Clone() *addrIndexBucket { levels := make(map[[levelKeySize]byte][]byte) for k, v := range b.levels { @@ -164,7 +164,8 @@ func (b *addrIndexBucket) sanityCheck(addrKey [addrKeySize]byte, expectedTotal i } // TestAddrIndexLevels ensures that adding and deleting entries to the address -// index creates multiple levels as decribed by the address index documentation. +// index creates multiple levels as described by the address index +// documentation. func TestAddrIndexLevels(t *testing.T) { t.Parallel() diff --git a/rpcserver.go b/rpcserver.go index 20a58ae67..74f8b8e49 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -2450,7 +2450,7 @@ func handleGetTxOut(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (i if c.Vout > uint32(len(mtx.TxOut)-1) { return nil, &btcjson.RPCError{ Code: btcjson.ErrRPCInvalidTxVout, - Message: "Ouput index number (vout) does not " + + Message: "Output index number (vout) does not " + "exist for transaction.", } } @@ -2994,7 +2994,7 @@ func createVinListPrevOut(s *rpcServer, mtx *wire.MsgTx, chainParams *chaincfg.P return vinList, nil } - // Use a dynamically sized list to accomodate the address filter. + // Use a dynamically sized list to accommodate the address filter. vinList := make([]btcjson.VinPrevOut, 0, len(mtx.TxIn)) // Lookup all of the referenced transaction outputs needed to populate diff --git a/rpcwebsocket.go b/rpcwebsocket.go index 67e80d4ac..0086c0b0b 100644 --- a/rpcwebsocket.go +++ b/rpcwebsocket.go @@ -1085,8 +1085,8 @@ out: } // serviceRequest services a parsed RPC request by looking up and executing the -// appropiate RPC handler. The response is marshalled and sent to the websocket -// client. +// appropriate RPC handler. The response is marshalled and sent to the +// websocket client. func (c *wsClient) serviceRequest(r *parsedRPCCmd) { var ( result interface{} diff --git a/server.go b/server.go index d70b24bf2..afc8c9594 100644 --- a/server.go +++ b/server.go @@ -223,7 +223,7 @@ func (sp *serverPeer) newestBlock() (*chainhash.Hash, int32, error) { return best.Hash, best.Height, nil } -// addKnownAddresses adds the given addresses to the set of known addreses to +// addKnownAddresses adds the given addresses to the set of known addresses to // the peer to prevent sending duplicate addresses. func (sp *serverPeer) addKnownAddresses(addresses []*wire.NetAddress) { for _, na := range addresses { @@ -2137,7 +2137,7 @@ out: if err := s.nat.DeletePortMapping("tcp", int(lport), int(lport)); err != nil { srvrLog.Warnf("unable to remove UPnP port mapping: %v", err) } else { - srvrLog.Debugf("succesfully disestablished UPnP port mapping") + srvrLog.Debugf("successfully disestablished UPnP port mapping") } s.wg.Done() diff --git a/txscript/sign.go b/txscript/sign.go index f208a8650..f50b692a9 100644 --- a/txscript/sign.go +++ b/txscript/sign.go @@ -294,7 +294,7 @@ sigLoop: hash := calcSignatureHash(pkPops, hashType, tx, idx) for _, addr := range addresses { - // All multisig addresses should be pubkey addreses + // All multisig addresses should be pubkey addresses // it is an error to call this internal function with // bad input. pkaddr := addr.(*btcutil.AddressPubKey) diff --git a/wire/msgaddr_test.go b/wire/msgaddr_test.go index d98807822..dba444836 100644 --- a/wire/msgaddr_test.go +++ b/wire/msgaddr_test.go @@ -103,7 +103,7 @@ func TestAddr(t *testing.T) { } // TestAddrWire tests the MsgAddr wire encode and decode for various numbers -// of addreses and protocol versions. +// of addresses and protocol versions. func TestAddrWire(t *testing.T) { // A couple of NetAddresses to use for testing. na := &NetAddress{