-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solana-ibc: map IBC client ids into u32 and refactor client state sto…
…rage IBC client ids have ‘<client-type>-<counter>’ format where counter is a global sequential number. Take advantage of that by converting client ids into u32 including just the counter. Since we’re effectively ignoring the client-type part of the id, keep counter → client id map in private storage and use it to verify that id we were given is the one we know about. Furthermore, rather than storing client information in a map keep it in a vector which is more compact and faster to index. At the same time, keep just a single vector for all per-client data rather than having separate maps for each piece of information. Issue: #35
- Loading branch information
Showing
6 changed files
with
307 additions
and
215 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
Oops, something went wrong.