diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-09-08 14:45:56 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-09-10 16:12:30 -0400 |
commit | 64704386b28ce3a1ab607a946ec729286da8faa6 (patch) | |
tree | e580722b499779ae14f9dd5e7b6e15d086d4aa68 | |
parent | 9bde93df2c84b6d5f333aa56cbd0b28b6ad337b0 (diff) | |
download | bitcoin-64704386b28ce3a1ab607a946ec729286da8faa6.tar.xz |
doc: fix typos and mistakes in BIP324 code comments
-rw-r--r-- | src/net.h | 12 | ||||
-rw-r--r-- | src/test/net_tests.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
@@ -548,17 +548,17 @@ private: /** Waiting for the other side's public key. * - * This is the initial state for initiators. The public key is sent out. When the receiver - * receives the other side's public key and transitions to GARB_GARBTERM, the sender state - * becomes READY. */ + * This is the initial state for initiators. The public key and garbage is sent out. When + * the receiver receives the other side's public key and transitions to GARB_GARBTERM, the + * sender state becomes READY. */ AWAITING_KEY, /** Normal sending state. * * In this state, the ciphers are initialized, so packets can be sent. When this state is - * entered, the garbage, garbage terminator, garbage authentication packet, and version - * packet are appended to the send buffer (in addition to the key which may still be - * there). In this state a message can be provided if the send buffer is empty. */ + * entered, the garbage terminator, garbage authentication packet, and version + * packet are appended to the send buffer (in addition to the key and garbage which may + * still be there). In this state a message can be provided if the send buffer is empty. */ READY, /** This transport is using v1 fallback. diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index eac8e8146a..3eb7bdec62 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -1021,7 +1021,7 @@ CKey GenerateRandomTestKey() noexcept * Each V2TransportTester encapsulates a V2Transport (the one being tested), and can be told to * interact with it. To do so, it also encapsulates a BIP324Cipher to act as the other side. A * second V2Transport is not used, as doing so would not permit scenarios that involve sending - * invalid data, or ones scenarios using BIP324 features that are not implemented on the sending + * invalid data, or ones using BIP324 features that are not implemented on the sending * side (like decoy packets). */ class V2TransportTester |