multi: Correct misspellings detected by misspell.

This commit is contained in:
Dave Collins 2016-10-27 23:21:58 -05:00
parent 55e2c5da2f
commit 14b51fc5f8
No known key found for this signature in database
GPG key ID: B8904D9D9C93D1F2
7 changed files with 12 additions and 11 deletions

View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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{}

View file

@ -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()

View file

@ -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)

View file

@ -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{