-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respond to a PING even if the source doesn't match the ENR (#184)
* Extract ping request from message * Respond PING request using one-time session * cargo fmt * Fix typo * Avoid macros for readability * Move the session failure up so that we don't send a request with a session technically still available * Store one session per node * Tweak comment * Fix clippy warnings * Don't update the time when access one-time sessions * Add parameters for one-time session * Add test for remove_one_time_session * Update src/handler/mod.rs Co-authored-by: Age Manning <[email protected]> * Move the one-time session related configs to be constants * Remove the one-time-session if failed to report the request * Fix tests --------- Co-authored-by: Age Manning <[email protected]>
- Loading branch information
1 parent
47844ca
commit 94e09e1
Showing
3 changed files
with
183 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters