multi: Correct misspellings detected by misspell.
This commit is contained in:
parent
55e2c5da2f
commit
14b51fc5f8
7 changed files with 12 additions and 11 deletions
|
@ -373,7 +373,7 @@ func dbRemoveAddrIndexEntries(bucket internalBucket, addrKey [addrKeySize]byte,
|
||||||
return nil
|
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
|
// specified number has been removed. This will potentially result in
|
||||||
// entirely empty lower levels which will be backfilled below.
|
// entirely empty lower levels which will be backfilled below.
|
||||||
var highestLoadedLevel uint8
|
var highestLoadedLevel uint8
|
||||||
|
|
|
@ -18,7 +18,7 @@ type addrIndexBucket struct {
|
||||||
levels map[[levelKeySize]byte][]byte
|
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 {
|
func (b *addrIndexBucket) Clone() *addrIndexBucket {
|
||||||
levels := make(map[[levelKeySize]byte][]byte)
|
levels := make(map[[levelKeySize]byte][]byte)
|
||||||
for k, v := range b.levels {
|
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
|
// 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) {
|
func TestAddrIndexLevels(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
|
|
|
@ -2450,7 +2450,7 @@ func handleGetTxOut(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (i
|
||||||
if c.Vout > uint32(len(mtx.TxOut)-1) {
|
if c.Vout > uint32(len(mtx.TxOut)-1) {
|
||||||
return nil, &btcjson.RPCError{
|
return nil, &btcjson.RPCError{
|
||||||
Code: btcjson.ErrRPCInvalidTxVout,
|
Code: btcjson.ErrRPCInvalidTxVout,
|
||||||
Message: "Ouput index number (vout) does not " +
|
Message: "Output index number (vout) does not " +
|
||||||
"exist for transaction.",
|
"exist for transaction.",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2994,7 +2994,7 @@ func createVinListPrevOut(s *rpcServer, mtx *wire.MsgTx, chainParams *chaincfg.P
|
||||||
return vinList, nil
|
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))
|
vinList := make([]btcjson.VinPrevOut, 0, len(mtx.TxIn))
|
||||||
|
|
||||||
// Lookup all of the referenced transaction outputs needed to populate
|
// Lookup all of the referenced transaction outputs needed to populate
|
||||||
|
|
|
@ -1085,8 +1085,8 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
// serviceRequest services a parsed RPC request by looking up and executing the
|
// serviceRequest services a parsed RPC request by looking up and executing the
|
||||||
// appropiate RPC handler. The response is marshalled and sent to the websocket
|
// appropriate RPC handler. The response is marshalled and sent to the
|
||||||
// client.
|
// websocket client.
|
||||||
func (c *wsClient) serviceRequest(r *parsedRPCCmd) {
|
func (c *wsClient) serviceRequest(r *parsedRPCCmd) {
|
||||||
var (
|
var (
|
||||||
result interface{}
|
result interface{}
|
||||||
|
|
|
@ -223,7 +223,7 @@ func (sp *serverPeer) newestBlock() (*chainhash.Hash, int32, error) {
|
||||||
return best.Hash, best.Height, nil
|
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.
|
// the peer to prevent sending duplicate addresses.
|
||||||
func (sp *serverPeer) addKnownAddresses(addresses []*wire.NetAddress) {
|
func (sp *serverPeer) addKnownAddresses(addresses []*wire.NetAddress) {
|
||||||
for _, na := range addresses {
|
for _, na := range addresses {
|
||||||
|
@ -2137,7 +2137,7 @@ out:
|
||||||
if err := s.nat.DeletePortMapping("tcp", int(lport), int(lport)); err != nil {
|
if err := s.nat.DeletePortMapping("tcp", int(lport), int(lport)); err != nil {
|
||||||
srvrLog.Warnf("unable to remove UPnP port mapping: %v", err)
|
srvrLog.Warnf("unable to remove UPnP port mapping: %v", err)
|
||||||
} else {
|
} else {
|
||||||
srvrLog.Debugf("succesfully disestablished UPnP port mapping")
|
srvrLog.Debugf("successfully disestablished UPnP port mapping")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.wg.Done()
|
s.wg.Done()
|
||||||
|
|
|
@ -294,7 +294,7 @@ sigLoop:
|
||||||
hash := calcSignatureHash(pkPops, hashType, tx, idx)
|
hash := calcSignatureHash(pkPops, hashType, tx, idx)
|
||||||
|
|
||||||
for _, addr := range addresses {
|
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
|
// it is an error to call this internal function with
|
||||||
// bad input.
|
// bad input.
|
||||||
pkaddr := addr.(*btcutil.AddressPubKey)
|
pkaddr := addr.(*btcutil.AddressPubKey)
|
||||||
|
|
|
@ -103,7 +103,7 @@ func TestAddr(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestAddrWire tests the MsgAddr wire encode and decode for various numbers
|
// 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) {
|
func TestAddrWire(t *testing.T) {
|
||||||
// A couple of NetAddresses to use for testing.
|
// A couple of NetAddresses to use for testing.
|
||||||
na := &NetAddress{
|
na := &NetAddress{
|
||||||
|
|
Loading…
Add table
Reference in a new issue