diff --git a/internal/netsync/interface.go b/internal/netsync/interface.go index cad185c62..741112944 100644 --- a/internal/netsync/interface.go +++ b/internal/netsync/interface.go @@ -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) } diff --git a/wire/msggetcfilter_test.go b/wire/msggetcfilter_test.go index d8123fbd0..4cebdcdd9 100644 --- a/wire/msggetcfilter_test.go +++ b/wire/msggetcfilter_test.go @@ -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 diff --git a/wire/msgtx.go b/wire/msgtx.go index 9fc22d788..1ada0b422 100644 --- a/wire/msgtx.go +++ b/wire/msgtx.go @@ -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) @@ -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.