Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolou86 authored and jcvernaleo committed Nov 20, 2023
1 parent f7e9fba commit 4171854
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion blockchain/indexers/addrindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const (
addrKeyTypeWitnessScriptHash = 3

// addrKeyTypeTaprootPubKey is the address type in an address key that
// represnts a pay-to-taproot adress. We use this to denote addresses
// represnts a pay-to-taproot address. We use this to denote addresses
// related to the segwit v1 that are encoded in the bech32m format.
addrKeyTypeTaprootPubKey = 4

Expand Down
2 changes: 1 addition & 1 deletion blockchain/rolling_merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (s *rollingMerkleTreeStore) calcMerkleRoot(adds []*btcutil.Tx, witness bool
// If we still have more than 1 root after adding on the last tx again,
// we need to do the same for the upper rows.
//
// For exmaple, the below tree has 6 leaves. For row 1, you'll need to
// For example, the below tree has 6 leaves. For row 1, you'll need to
// hash 'F' with itself to create 'C' so you have something to hash with
// 'B'. For bigger trees we may need to do the same in rows 2 or 3 as
// well.
Expand Down
2 changes: 1 addition & 1 deletion btcec/schnorr/musig2/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func (s *Session) Sign(msg [32]byte,
return nil, ErrSigningContextReuse

// We also need to make sure we have the combined nonce, otherwise this
// funciton was called too early.
// function was called too early.
case s.combinedNonce == nil:
return nil, ErrCombinedNonceUnavailable
}
Expand Down
2 changes: 1 addition & 1 deletion btcec/schnorr/musig2/musig2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func TestMuSigEarlyNonce(t *testing.T) {

msg := sha256.Sum256([]byte("let's get taprooty, LN style"))

// If we try to sign before we have the combined nonce, we shoudl get
// If we try to sign before we have the combined nonce, we should get
// an error.
_, err = session1.Sign(msg)
if !errors.Is(err, ErrCombinedNonceUnavailable) {
Expand Down
2 changes: 1 addition & 1 deletion rpcclient/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ func (c *Client) handleSendPostMessage(jReq *jsonRequest) {
return
}

// We still want to return an error if for any reason the respone
// We still want to return an error if for any reason the response
// remains empty.
if httpResponse == nil {
jReq.responseChan <- &Response{
Expand Down
2 changes: 1 addition & 1 deletion wire/netaddressv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func maxNetAddressV2Payload() uint32 {
plen += 1

// The largest address is 512 bytes. Even though it will not be a valid
// address, we should read and ignore it. The preceeding varint to
// address, we should read and ignore it. The preceding varint to
// store 512 bytes is 3 bytes long. This gives us a total of 515 bytes.
plen += 515

Expand Down

0 comments on commit 4171854

Please sign in to comment.