Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print directory node info #1231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

print directory node info #1231

wants to merge 1 commit into from

Conversation

AdamISZ
Copy link
Member

@AdamISZ AdamISZ commented Apr 10, 2022

Not urgent, seems open to discussion exactly how to show this, but it should be shown (we may want to do something about OnionMessageChanel.info_callback at the same time, by the way).

This will go along with a change to JoinMarket-Org/custom-scripts#16 but users don't need to care about that.

@@ -1200,6 +1202,8 @@ def process_handshake(self, peerid: str, message: str,
return
# We received a valid, accepting dn-handshake. Update the peer.
peer.update_status(PEER_STATUS_HANDSHAKED)
# Show the info for the directory to the user, with emphasis:
self.info_callback("\n\n" + motd + "\n\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should limit allowed character set here, for example, don't allow ASCII control characters.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good point. Also there is the question of size. A slight concern I have is, it would be very natural to add e.g. gpg signatures here, but they would represent a big chunk of spam. I guess best practice will be, put a url here where the signature can be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants