[tor-commits] [stem/master] Drop todo note about recognized field

atagar at torproject.org atagar at torproject.org
Wed Feb 7 19:44:51 UTC 2018

commit a50a07da4bccad91e4883c174cd4bfa00a6f49a8
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Feb 7 10:21:25 2018 -0800

    Drop todo note about recognized field
    Sent a little patch to clarify this field...
 stem/client/cell.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/stem/client/cell.py b/stem/client/cell.py
index 4ac8d40e..13f14f3c 100644
--- a/stem/client/cell.py
+++ b/stem/client/cell.py
@@ -292,18 +292,11 @@ class RelayCell(CircuitCell):
   :var stem.client.RelayCommand command: command to be issued
   :var int command_int: integer value of our command
   :var bytes data: payload of the cell
-  :var int recognized: zero if endpoint is this hop, non-zero otherwise
+  :var int recognized: zero if cell is decrypted, non-zero otherwise
   :var int digest: running digest held with the relay
   :var int stream_id: specific stream this concerns
-  # TODO: Relay cells also have a 'recognized' field but from the spec I really
-  # haven't a clue what the heck it is. The spec makes multiple mentions to
-  # "when the 'recognized' field of a RELAY cell is zero" but no mention to if
-  # it's non-zero or what the field actually is. :/
-  #
-  # For now just leaving it out. I'll file a ticket to ask about it later.
   VALUE = 3

More information about the tor-commits mailing list