-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHIA-1124] Deduplicate keychain code a bit (#18455)
The keychain has a couple of weird cleanliness mistakes. The first is that we separately define `MAX_KEYS` three times across our code base and then always use it with `+1`. The second is that many keychain functions iterate through all existing keys to find the one it's looking for. This results in a lot of code duplication that can be extracted to its own function. This PR is just for cleanliness for the sake of making upstream refactors easier.
- Loading branch information
Showing
3 changed files
with
45 additions
and
61 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