Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: wanxiangchwng <[email protected]>
  • Loading branch information
wanxiangchwng committed Nov 23, 2024
1 parent 752dac0 commit 674e902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/netsync/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type PeerNotifier interface {
// notifies websocket clients of the passed transactions.
AnnounceNewTransactions(txns []*dcrutil.Tx)

// AnnounceMixMessage generates and relays inventory vectors of the
// AnnounceMixMessages generates and relays inventory vectors of the
// passed messages.
AnnounceMixMessages(msgs []mixing.Message)
}
2 changes: 1 addition & 1 deletion wire/msggetcfilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/decred/dcrd/chaincfg/chainhash"
)

// TestMsgGetCFilter tests the MsgGetCFilter API.
// TestGetCFilter tests the MsgGetCFilter API.
func TestGetCFilter(t *testing.T) {
pver := ProtocolVersion

Expand Down
4 changes: 2 additions & 2 deletions wire/msgtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ func readTxInWitness(r io.Reader, pver uint32, version uint16, ti *TxIn) error {
return err
}

// writeTxInPrefixs encodes ti to the Decred protocol encoding for a transaction
// writeTxInPrefix encodes ti to the Decred protocol encoding for a transaction
// input (TxIn) prefix to w.
func writeTxInPrefix(w io.Writer, pver uint32, version uint16, ti *TxIn) error {
err := WriteOutPoint(w, pver, version, &ti.PreviousOutPoint)
Expand All @@ -1218,7 +1218,7 @@ func writeTxInPrefix(w io.Writer, pver uint32, version uint16, ti *TxIn) error {
return binarySerializer.PutUint32(w, littleEndian, ti.Sequence)
}

// writeTxWitness encodes ti to the Decred protocol encoding for a transaction
// writeTxInWitness encodes ti to the Decred protocol encoding for a transaction
// input (TxIn) witness to w.
func writeTxInWitness(w io.Writer, pver uint32, version uint16, ti *TxIn) error {
// ValueIn.
Expand Down

0 comments on commit 674e902

Please sign in to comment.