Skip to content

Commit 6470438

Browse files
committed
doc: fix typos and mistakes in BIP324 code comments
1 parent 9bde93d commit 6470438

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/net.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,17 +548,17 @@ class V2Transport final : public Transport
548548

549549
/** Waiting for the other side's public key.
550550
*
551-
* This is the initial state for initiators. The public key is sent out. When the receiver
552-
* receives the other side's public key and transitions to GARB_GARBTERM, the sender state
553-
* becomes READY. */
551+
* This is the initial state for initiators. The public key and garbage is sent out. When
552+
* the receiver receives the other side's public key and transitions to GARB_GARBTERM, the
553+
* sender state becomes READY. */
554554
AWAITING_KEY,
555555

556556
/** Normal sending state.
557557
*
558558
* In this state, the ciphers are initialized, so packets can be sent. When this state is
559-
* entered, the garbage, garbage terminator, garbage authentication packet, and version
560-
* packet are appended to the send buffer (in addition to the key which may still be
561-
* there). In this state a message can be provided if the send buffer is empty. */
559+
* entered, the garbage terminator, garbage authentication packet, and version
560+
* packet are appended to the send buffer (in addition to the key and garbage which may
561+
* still be there). In this state a message can be provided if the send buffer is empty. */
562562
READY,
563563

564564
/** This transport is using v1 fallback.

src/test/net_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ CKey GenerateRandomTestKey() noexcept
10211021
* Each V2TransportTester encapsulates a V2Transport (the one being tested), and can be told to
10221022
* interact with it. To do so, it also encapsulates a BIP324Cipher to act as the other side. A
10231023
* second V2Transport is not used, as doing so would not permit scenarios that involve sending
1024-
* invalid data, or ones scenarios using BIP324 features that are not implemented on the sending
1024+
* invalid data, or ones using BIP324 features that are not implemented on the sending
10251025
* side (like decoy packets).
10261026
*/
10271027
class V2TransportTester

0 commit comments

Comments
 (0)