Yup. The trouble is that tor only provides methods for 'give me the descriptor I've downloaded about relay x'. It doesn't offer a method to get the descriptor we published.
As such if we haven't received a descriptor about ourselves then this query fails. This is most often an issue for newly started relays since they won't be part of a consensus for up to an hour.
Imho it would be nice if tor provided controller methods for...
give me my self-published server descriptor
give me my self-published extra-info descriptor
give me my self-published microdescriptor
This won't be possible for router status entries (the get_network_status() method), but for all the rest tor should be capable of telling us the descriptor we ourselves are publishing.
Sending this over to Nick for his thoughts.
Trac: Summary: does tor knows itself ? to Controller method to get our own descriptor Component: Stem to Tor Type: task to enhancement
I'd be fine to have all of those new methods provided.
notes:
"give me my self-published microdescriptor" doesn't work -- microdescs aren't selfpublished.
We need to decide whether these items mean "give us the most recently published descriptor," "give me the descriptor we would publish, if we were to publish one right now," or what.
"give me my self-published microdescriptor" doesn't work -- microdescs aren't selfpublished
Gotcha. Wasn't sure on that one.
We need to decide whether these items mean "give us the most recently published descriptor," "give me the descriptor we would publish, if we were to publish one right now," or what.
Good question. If we could have both via something like...