Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Introduce routability and protocol events; cache unmarshalled RSA keys #105

Merged
merged 8 commits into from
Jan 16, 2020

Conversation

raulk
Copy link
Member

@raulk raulk commented Jan 14, 2020

Proposed merge strategy: squash and merge.

This PR introduces the following event groups:

  • local routability: EvtLocalRoutability{Public,Private,Unknown} -- to be emitted when AutoNAT detects changes in the routability of the local node.
  • peer identification: EvtPeerIdentification{Completed,Failed} -- to be emitted when we've run identify against a peer, either successfully or in error.

This PR also introduces caching for unmarshalled RSA keys, to avoid the cost of re-unmarshalling on every access.

@raulk raulk requested a review from Stebalien January 14, 2020 19:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants